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