import sys



data = int(sys.stdin.readline().strip())

seconds, pre = data % 60, data / 60

minutes, hours = pre % 60, pre / 60



print(('%d:%d:%d' % (hours, minutes, seconds)))
data = eval(input())

seconds = int(data)

(seconds, sec) = divmod(seconds, 60)

(hour, minute) = divmod(seconds, 60)



print(('{}:{}:{}'.format(hour, minute, sec)))
import sys

data = int(sys.stdin.readline().strip())
seconds, pre = data % 60, data / 60
minutes, hours = pre % 60, pre / 60
print(("%d:%d:%d" % (hours, minutes, seconds)))

data = eval(input())
seconds = int(data)
(seconds, sec) = divmod(seconds, 60)
(hour, minute) = divmod(seconds, 60)
print(("{}:{}:{}".format(hour, minute, sec)))

-import sys - -data = int(sys.stdin.readline().strip()) -seconds, pre = data % 60, data / 60 -minutes, hours = pre % 60, pre / 60 -print(("%d:%d:%d" % (hours, minutes, seconds))) +data = eval(input()) +seconds = int(data) +(seconds, sec) = divmod(seconds, 60) +(hour, minute) = divmod(seconds, 60) +print(("{}:{}:{}".format(hour, minute, sec)))