from math import gcd n = float(input()) a = gcd(100000000, round(n*100000000)) print(str(round(n*100000000 / a)) + '/' + str(round(100000000 / a)))