from fractions import Fraction f = Fraction(input()) d, n = f.as_integer_ratio() print(f'{d}/{n}')