from fractions import Fraction n = input() print(Fraction(n))