import datetime a = int(input()) start = datetime.time(10, 0, 0, 0) end = datetime.datetime.combine(datetime.date.today(), start) + datetime.timedelta(minutes=(a / 100) * 60) print('{:0>2}:{:0>2}'.format(end.hour, end.minute))