from fractions import Fraction X = input() f = Fraction(X) print(f.numerator, f.denominator, sep='/')