from fractions import * while 1: print(Fraction(input()))