a_int = int(input()) timer_data = int(a_int*60/100) hour_i = 10 + int(int(timer_data/60)%24) min_i = 0 + int(timer_data%60) hour_s = "" min_s = "" if hour_i < 10: hour_s = "0" + str(hour_i) else: hour_s = str(hour_i) if min_i < 10: min_s = "0" + str(min_i) else: min_s = str(min_i) print(hour_s + ":" + min_s)