r=int(input()) mr=r*1000 mv=100/60*1000 mt=(mr/mv) if mt>=60: h=int(mt//60) m=int(mt-h*60) else: h="" m=int(mt) if m<10: c="0" else: c="" print(str(h+10)+":"+c+str(m))