There were 3 questions to solve in 75 minutes in the AMCAT platform. All of the questions were too simple.
Note: Here you have to take all the inputs by yourself, and print the result to stdout.
All the best!