while 1:s=int(raw_input()[::2],25)%24;print'%X'%(s+s/12*4)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page