a = int(input()) h = 10 + ((a//10)*6)//60 m = 0 + ((a//10)*6)%60 h = str(h) m = str(m) ans = h.zfill(2)+':'+m.zfill(2) print(ans)