while 1: z,*a=input()[::2] for b in a:z+='<>='[(z[-1]>=b)+(z[-1]==b)]+b print(z)