while 1: z,*a=input()[::2] for b in a:z+='<>='[(z[-1]>=b)+(z[-1]==b)]+b print(z)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page