from decimal import * import math X = Decimal(input())*10**10 temp = math.gcd(int(X),10**10) print(str(X//temp)+'/'+str(10**10//temp))