PROBLEM LINK:
Author:ADMIN
Editorialist:SUSHANT AGARWAL
DIFFICULTY:
CAKEWALK
PREREQUISITES:
Basic looping,Basic Input/Output,Data Types
EXPLANATION:
Please refer to the sample solution given by editorialist.
EDITORIALIST'S SOLUTION:
Editorialist's solution can be found here.