numerator=float(input()) denominator=1 while numerator!=int(numerator): numerator*=10 denominator*=10 numerator=int(numerator) from math import gcd num=gcd(numerator,denominator) print(str(numerator//num)+'/'+str(denominator//num))