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