#coding:utf-8

S=int( eval(input()) )

h=int( S/3600)

S=int( S%3600)

m=int( S/60)

s=int( S%60)

print(( "{}:{}:{}".format( h, m, s ) ))
import sys



x = int( sys.stdin.readline() )

h = x//3600

m = ( x%3600 )//60

s = ( x%3600 )%60

print(( "{}:{}:{}".format( h, m, s) ))
# coding:utf-8
S = int(eval(input()))
h = int(S / 3600)
S = int(S % 3600)
m = int(S / 60)
s = int(S % 60)
print(("{}:{}:{}".format(h, m, s)))

import sys

x = int(sys.stdin.readline())
h = x // 3600
m = (x % 3600) // 60
s = (x % 3600) % 60
print(("{}:{}:{}".format(h, m, s)))

-# coding:utf-8 -S = int(eval(input())) -h = int(S / 3600) -S = int(S % 3600) -m = int(S / 60) -s = int(S % 60) +import sys + +x = int(sys.stdin.readline()) +h = x // 3600 +m = (x % 3600) // 60 +s = (x % 3600) % 60