from decimal import Decimal N=int(Decimal(input())*10**9) S=10**9 import math x=math.gcd(N,S) N//=x S//=x print(str(N)+"/"+str(S))