import datetime a = int(input()) t0 = datetime.datetime(2018, 3, 10, 10, 00) elapsed_time = datetime.timedelta(minutes=(a / 100) * 60) t = t0 + elapsed_time print(t.strftime("%H:%M"))