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