a = int(input()) h = a // 100 m = (a - 100 * h) // 100 * 60 if len(m) == 1: print(str(10 + h) + ":0" + str(m)) else: print(str(10 + h) + ":" + str(m))