N=int(input()) h=str(10+N//100) m=int((N%100)/10*6) if m<10: m="0"+str(m) else: m=str(m) print(h+":"+m)