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