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