from fractions import* print((b:=Fraction(input())).numerator,b.denominator,sep='/')