while 1:s=input();a,b,c=s.split();print([a+' = 0x'+c,'0x'+s]['%2s'%c>'%2s'%a])