Ultra fast mathematician problem

https://ide.codingblocks.com/s/62004

This code is showing same values upon entering 2 test cases. how to rectify it ?

Hi Yukti, read the question properly the input and output format is given a number/integer and not string, In output you are printing a string, instead you have to print integer.