import datetime



s = int(eval(input()))

hour = int(s / 60 / 60)

minute = int((s - (hour * 60 * 60)) / 60)

second = int((s - (hour * 60 * 60)) % 60)

print(("{0}:{1}:{2}".format(hour,minute,second)))
S = int(eval(input()))

h = S // 3600

m = S % 3600 // 60

s = S % 3600 % 60

print(("%d:%d:%d" % (h,m,s)))
import datetime

s = int(eval(input()))
hour = int(s / 60 / 60)
minute = int((s - (hour * 60 * 60)) / 60)
second = int((s - (hour * 60 * 60)) % 60)
print(("{0}:{1}:{2}".format(hour, minute, second)))

S = int(eval(input()))
h = S // 3600
m = S % 3600 // 60
s = S % 3600 % 60
print(("%d:%d:%d" % (h, m, s)))

-import datetime - -s = int(eval(input())) -hour = int(s / 60 / 60) -minute = int((s - (hour * 60 * 60)) / 60) -second = int((s - (hour * 60 * 60)) % 60) -print(("{0}:{1}:{2}".format(hour, minute, second))) +S = int(eval(input())) +h = S // 3600 +m = S % 3600 // 60 +s = S % 3600 % 60 +print(("%d:%d:%d" % (h, m, s)))