from datetime import datetime, timedelta # 時刻 base = datetime.strptime('10:00',"%H:%M") #time_1 = datetime.strptime('05:00:00',"%H:%M:%S") # 時間 t = timedelta(minutes = int(input())*60/100) # 時刻 - 時間 を出力 print((base + t).strftime("%H:%M"))