from fractions import Fraction n = input() ans = str(Fraction(n)) if "/" in ans: print(ans) else: print(ans + "/1")