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