from decimal import Decimal X = int(Decimal(input())*10**8) from math import gcd g = gcd(X,10**8) print(f'{X//g}/{10**8//g}')