a = int(input()) h = a // 100 m = (a - 100 * h) / 100 * 60 print(str(10 + h) + ":" + str(m))