Time Arithmetic by clock(no import)

while 1:r=raw_input();t=sum(int(r[3*i:][:2])*60**(~i%3)for i in range(6));print r+"=%02d:%02d:%02d"%(t/3600%24,t/60%60,t%60)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top