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