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