a=int(input()) t=a/100 h=int(t)+10 m=int((a%100)*0.6) s=(a%100)%60*3.6 print('{:02}:{:02}'.format(h,m))