a=int(input()) h=int (a / 100) m=a-(h*100) m=int(m*60 / 100) print(h+10,end='') print(':',end='') if(m<10): print('0',end='') print(m) else: print(m)