#yuki651 a=int(raw_input()) f=100.0/60 res=a/f res1=int(res/60)+10 res2=int(res%60) print ''.join(str(res1)+':'+str(res2).zfill(2))