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