d = int(input()) t = int((d/100)*60) m = t%60 h = t//60 print(str(10+h).zfill(2)+":"+str(m).zfill(2))