Convert decimal to int

Given a decimal number n in the forma of a string, you need to figure out the smallest number to which multiplying n it will become an integer.

Note : You can assume that, there will be always at least one number which can convert given decimal to integer.

Input format : A numeric string that contains decimal number n

Output format : An integer

Sample Input 1 :
Sample Output 1 :
Sample Input 2 :
Sample Output 2 :

Login to submit your solution

Fb dab53a1a64929320dc7425896aa73fd9e5512b6ab52e414ff5f3ebb5cecc73eb

Share Problem