Program :

Sample Input :

Sample Output :

Hint :

Task :

Constraints:

Time taken =

Home