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