import sys input = sys.stdin.readline from collections import * from math import gcd X = float(input()) X *= 10**16 X = int(X) G = gcd(X, 10**16) print(str(X//G)+'/'+str(10**16//G))