while 1:s=input();a,b,c=s.split();print([a+' = 0x'+c,'0x'+s]['%2s'%c>'%2s'%a])
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page