Problem:
Watch Write a program which reads an integer $S$ [second] and converts it to $h:m:s$ where $h$, $m$, $s$ denote hours, minutes (less than 60) and seconds (less than 60) respectively. Input An integer $S$ is given in a line. Output Print $h$, $m$ and $s$ separated by ':'. You do not need to put '0' for a value, which consists of a digit. Constraints  $0 \leq S \leq 86400$  Sample Input 1 46979 Sample Output 1 13:2:59

Solution (Python):
x = int(input())

h = x // 3600
m = (x % 3600) // 60
s = x - (h * 3600 + m * 60)

print('{0}:{1}:{2}'.format(h, m, s))

Solution (Python):
S = int(input())
print(str(S//3600) + ":" + str(S%3600//60) + ":" + str(S%3600%60))

Solution (Python):
s = input()
h = s/3600
s = s%3600
m = s/60
s = s%60
print str(h) + ":" + str(m) + ":" + str(s)

Solution (Python):
s=int(input())
h=s//3600
m=(s-h*3600)//60
se=s-h*3600-m*60

print(str(h)+":"+str(m)+":"+str(se))

Solution (Python):
S=int(input())
h=S//3600
m=S%3600//60
s=S%3600%60
print(h,m,s,sep=":")

Solution (Python):
ss = int(input())
h = ss // 3600
m = (ss % 3600) // 60
s = (ss % 3600) % 60
print('%i:%i:%i' % (h, m, s))

Solution (Python):
s = int(raw_input())
m = int( s / 60 )
S = s % 60
M = m % 60
H = int( m / 60 )

print ':'.join(map(str,[ H , M , S ] ))

Solution (Python):
def main():
    x = input()
    y = int(x)
    h, z = divmod(y, 3600)
    m, s = divmod(z, 60)
    
    print(str(h)+":"+str(m)+":"+str(s))

if __name__ == "__main__":
    main()

Solution (Python):
S = int(input())
print(S // (60 ** 2), (S // 60) % 60, S % 60, sep =":")

Solution (Python):
S = int(raw_input())

h = S / 3600
m = (S - h * 3600) / 60
s = S - h * 3600 - m * 60

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

Solution (Python):
S = int(raw_input())
h = S/60/60
m = S/60 - h*60
s = S % 60
print '{}:{}:{}'.format(h, m,s)

Solution (Python):
n = int(input().strip())
temp = n-n%3600
h = (n-n%3600)//3600
m = n%3600//60
s = (n%3600)%60
print("%d:%d:%d"%(h,m,s))

Solution (Python):
input_sec = int(input())

hour = input_sec // 3600

amari = input_sec % 3600
mini = amari // 60

sec = input_sec % 60

print("{0}:{1}:{2}".format(hour,mini,sec))

Solution (Python):
S = int(input())
h = S //3600
m = S%3600 //60
s = S%60
print(h,m,s,sep=':')

Solution (Python):
S = int(input())
h = S // 3600
m = (S % 3600) // 60
s = S % 60
print(h, m, s, sep = ':')

Solution (Python):
S = int(input())
h = S // 3600
m = S % 3600 // 60
s = S % 60
print(h, m, s, sep = ':')

Solution (Python):

data = int(input())

hour = data // 3600
minites = (data - hour * 3600) // 60
second = (data - hour * 3600) % 60

print(str(hour) + ":" + str(minites) + ":" + str(second))

Solution (Python):
t = int(input())
s = t % 60
t = (t - s) / 60
m =  int(t % 60)
t = int((t - m) / 60)
print(str(t)+":"+str(m)+":"+str(s))

Solution (Python):



s = int(input())

h = int(s/60/60)
m = int((s - h*60*60)/60)
s = int((s - h*60*60 - m*60))

print(str(h) + ":" + str(m) + ":" + str(s))

Solution (Python):


s = int(input())

h = int(s/60/60)
m = int((s - h*60*60)/60)
s = int(s - h*60*60 - m*60)

print(str(h) + ":" + str(m) + ":" + str(s))

Solution (Python):
S = int( input() )
h = S // 3600
m = (S % 3600) // 60
s = S % 60
print(h, m, s, sep= ":" )

Solution (Python):
x = int(input().strip())
h = x / 3600
m = (x%3600)/60
s = (x%3600)%60
print("%d:%d:%d"%(h,m,s))

Solution (Python):
s = int(input())
h = s // (60 * 60)
s -= h * (60 * 60)
m = s // 60
s -= m * 60
print('%d:%d:%d' % (h, m, s))

Solution (Python):
a=int(input())
h=int(int(a)/3600)
b=int((int(a)-h*3600)/60)
s=int((int(a)-h*3600-b*60))
print("{0}:{1}:{2}".format(h,b,s))

Solution (Python):
time_S = int(input())

s = time_S % 60
m = time_S / 60
h = m / 60
m %= 60

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

Solution (Python):
S = int(input())
h = S // 3600
m = S % 3600 // 60
s = S % 60
print(h, m, s, sep = ':')

Solution (Python):
time=int(input())
h=time//3600
m=(time-h*3600)//60
s=((time-h*3600)-(m*60))
print("{0}:{1}:{2}".format(h,m,s))

Solution (Python):
n=int(input())
print(':'.join(map(str,[n//3600,n%3600//60,n%60])))

Solution (Python):
second = int(raw_input())
s = second % 60
m1 = second / 60
m = m1 % 60
h = m1 / 60
print("{0}:{1}:{2}".format(h,m,s))

Solution (Python):
second = input()
h = second // 3600
m = second % 3600 // 60
s = second % 60


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

Solution (Python):
S=int(input())
h=S//3600
m=(S-h*3600)//60
s=S%60
print(str(h)+':'+str(m)+':'+str(s))

Solution (Python):
s = int(input())
h = round(s // 3600)
m = round((s - h* 3600) // 60)
s_2 = round(s - (h*3600) - (m*60))
print("{}:{}:{}".format(h, m, s_2))

Solution (Python):
x=int(input())

def watch(x):
	h=int(x/3600)
	m=int((x-h*3600)/60)
	s=int(x-3600*h-60*m)
	print(str(h)+":"+str(m)+":"+str(s))

watch(x)

Solution (Python):
s = int(input())

h = (s//3600)
s = s%3600
m = (s//60)
s = s%60

print (str(h) + ":" + str(m) + ":" + str(s))

Solution (Python):
def main():
    S = int(input())
    h = S // 3600
    S %= 3600
    m = S // 60
    S %= 60
    s = S
    print(h,end = "")
    print(":",end = "")
    print(m,end = "")
    print(":",end = "")
    print(s,end = "")
    print()

if __name__ == "__main__":
    main()

Solution (Python):
S = raw_input()
S = int(S)
h = S/3600
m = S%3600/60
s = S%60
print(str(h) + ':' + str(m) + ':' + str(s))

Solution (Python):
S = raw_input()
S = int(S)
h = S/3600
m = S%3600/60
s = S%60
print(str(h) + ':' + str(m) + ':' + str(s))

Solution (Python):
def main():
    input_string = input('')
    time = int(input_string)
    print('%d:%d:%d' % ((time // 3600), ((time % 3600) // 60), (time % 60)))


main()

Solution (Python):
def main():
    input_string = input('')
    time = int(input_string)
    print('%d:%d:%d' % ((time // 3600), ((time % 3600) // 60), (time % 60)))


main()

Solution (Python):
def main():
    input_string = input()
    time = int(input_string)
    print('%d:%d:%d' % ((time // 3600), ((time % 3600) // 60), (time % 60)))
 
 
main()

Solution (Python):
time = int(input())

h = int(time / 3600)
m = int(time % 3600 / 60)
s = time % 60
print("{}:{}:{}".format(h,m,s))

Solution (Python):

S = int(input())
h = S // (60 * 60)
m = (S % 3600) // 60
s = (S % 3600) % 60
desc = "{0}:{1}:{2}".format(h,m,s)
print(desc)

Solution (Python):
n = int(input())

h = n // 3600
m = (n - h * 3600) // 60
s = n - (h * 3600 + m * 60)

print(h,m,s,sep=':')

Solution (Python):
S = int(input())

s = S % 60
m = int(S / 60) % 60
h = int(int(S / 60) / 60)

print('%d:%d:%d' % (h,m,s))

Solution (Python):
a=int(input())
h=int(a/3600)
m=int((a-(h*3600))/60)
s=int(a-(h*3600)-(m*60))
print("%d:%d:%d"%(h,m,s))

Solution (Python):
x=int(input())
h=(int)(x/3600)
m=(int)((x%3600)/60)
s=(int)(x%3600)%60

print(str(h)+":"+str(m)+":"+str(s))

Solution (Python):
n = int(input())
h = int(n / 3600)
n %= 3600
m = int(n / 60)
n %= 60
s = int(n)
print(str(h) + ":" + str(m) + ":" + str(s))

Solution (Python):

"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_D&lang=jp

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    S = int(input())
    h = S // 3600
    m = (S % 3600) // 60
    s = S % 60

    print('{}:{}:{}'.format(h, m, s))


if __name__ == '__main__':
    main(sys.argv[1:])

Solution (Python):
a=int(input())
print(int(a/60/60), end=':')
print(int(a%(60*60)/60), end=':')
print(int(a%60))

Solution (Python):

time = int(input())


H = time // 3600


m = time % 3600
M = m // 60

S = m % 60

print('{}:{}:{}'.format(H, M, S))

Solution (Python):
a = int(input())
h = int(a / 3600)
m = int((a - h * 3600) / 60)
s = int(a - (h * 3600) - (m * 60))
print("%s:%s:%s" % (h, m, s))

Solution (Python):
s = int(input())
a = s/3600
b = (s - 3600 * a)/60
c = s % 60

print (str(a) + ":" + str(b) + ":" + str(c))

Solution (Python):
num = int(input())
h = int(num/3600)
m = int((num-3600*h)/60)
s = num-(3600*h+60*m)
print('{}:{}:{}'.format(h,m,s))

Solution (Python):
S=int(input())
h=S//3600
m=(S-h*3600)//60
s=S-h*3600-m*60
print(str(h)+':'+str(m)+':'+str(s))

Solution (Python):


import fileinput
import math

def main():

    a = int(input())

    hour = a / 3600
    minute = (a%3600) / 60
    second = (a%3600) % 60

    print('{0}:{1}:{2}'.format(hour, minute, second))

if __name__ == '__main__':
    main()

Solution (Python):
a = int(input())

h=int(a/3600)
m=int((a%3600)/60)
s=int((a%3600)%60)
print (h,m,s,sep=":")

Solution (Python):
S = int(input())

h = S // 3600 
m_with_second = S - h * 3600
m = m_with_second // 60
s = m_with_second - m * 60

print('{}:{}:{}'.format(h, m, s))

Solution (Python):
import sys
l = sys.stdin.readline()
sec = int(l)

h = sec / 3600
sec = sec % 3600
m = sec / 60
s = sec % 60
print("%d:%d:%d" % (h, m, s))

Solution (Python):
import sys
InputData=[]
for line in sys.stdin:
    InputData.append(int(line))

for i in range(len(InputData)):
    in1 = InputData[i]
    h = in1 / 3600
    m = (in1 / 60) - (h * 60)
    y = in1 - (h * 3600) - (m * 60)
    print(str(h) + ":" + str(m) + ":" +str(y))

Solution (Python):
in_time = int(input())
if 0 <= in_time < 86400:
    tmp1 = 60 ** 2
    h = in_time // tmp1
    tmp2 = in_time % tmp1
    m = tmp2 // 60
    t = tmp2 % 60
    print(str(h) + ':' + str(m) + ':' + str(t))

Solution (Python):
sec_time = int(input())

hour = sec_time // 3600
minutes = sec_time % 3600 // 60
seconds = sec_time % 3600 % 60

print("{}:{}:{}".format(hour, minutes, seconds))

Solution (Python):
def main():
    S = int(input())
    m, s = divmod(S, 60)
    h, m = divmod(m, 60)

    print(":".join(map(str, [h, m, s])))

if __name__ == "__main__":
    main()

Solution (Python):
def main():
    n = int(input())

    if n > 86399:
        print("invalid answer.")
        return

    h = int(n / 3600)
    th = h*3600
    m = int((n-th) /60)
    tm = m *60
    s = n-th-tm

    print("{0}:{1}:{2}".format(h,m,s))

if __name__ == '__main__':
    main()

Solution (Python):
def getTime(t):
    h = t // 3600
    m = (t % 3600) // 60
    s = (t % 3600) % 60

    return h,m,s

tt = int(input())
h, m, s = getTime(tt)
print("{}:{}:{}".format(h,m,s))

Solution (Python):
def main():
    n = int(input())

    h = int(n/3600)
    n %= 3600
    m = int(n/60)
    n %= 60
    s = n

    print("{0}:{1}:{2}".format(h,m,s))

if __name__ == '__main__':
    main()

Solution (Python):
H=3600
M=60
 
sec = int(input())
 
h = str(sec // H)
m = str(sec % H // M)
s = str(sec % H % M)
 
print('{}:{}:{}'.format(h,m,s))

Solution (Python):
s=int(input())
print(f'{s//3600}:{s//60%60}:{s%60}')

Solution (Python):
s=int(input())
print(s//3600,s//60%60,s%60,sep=':')

Solution (Python):
s=int(input())
print(f'{s//3600}:{s//60%60}:{s%60}')

Solution (Python):
s = input()
s = int(s)
h = int(s / 3600)
m = int((s - h * 3600) /60) 
s = s - 60 * m - 3600 * h
print('%d:%d:%d'%(h,m,s))

Solution (Python):

sec = input()
print "{}:{}:{}".format(sec/3600, sec%3600/60, sec%3600%60)

Solution (Python):
s=int(input())
h=s//3600
m=s%3600//60
s=s%60
print('%d:%d:%d' % (h,m,s))

Solution (Python):
a = input()
x=int(a)
h=int(x/3600)
m=int((x-h*3600)/60)
s=x-h*3600-m*60
print(str(h)+":"+str(m)+":"+str(s))

Solution (Python):
data = input()
seconds = int(data)
(seconds, sec) = divmod(seconds, 60)
(hour, minute) = divmod(seconds, 60)

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

Solution (Python):
a = int(input())
h = int(a/3600)
m=int((a%3600)/60)
s=int((a%3600)%60)

print(h,m,s,sep=":")

Solution (Python):
a = int(input())
h = a/3600
a%=3600
m = a/60
s = a%60
str = "%d:%d:%d"%(h,m,s)
print(str)

Solution (Python):

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

Solution (Python):
s = int(input())
h = int(s / 3600)
m = int((s-3600*h) / 60)
s = int((s-3600*h-60*m))
print("%d:%d:%d" % (h, m, s))

Solution (Python):
s = input()
h = s / 3600
m = (s % 3600) / 60
s = s - ( h * 3600 + m * 60)
print "%d:%d:%d" % (h,m,s)

Solution (Python):
s = int(input())
h = s / 3600
i = s % 3600
m = i / 60
j = i % 60

print(str(int(h)) + ":" + str(int(m)) + ":" + str(int(j)))

Solution (Python):
s = int(input())
h = s / 3600
i = s % 3600
m = i / 60
j = i % 60
 
print(str(int(h)) + ":" + str(int(m)) + ":" + str(int(j)))

Solution (Python):
S = int(input())
h = int(S/3600)
S %= 3600
m = int(S/60)
print('{}:{}:{}'.format(h,m,S%60))

Solution (Python):
a=int(input())
print(a//3600,":",a%3600//60,":",a%3600%60,sep="")

Solution (Python):
s = input()
s = int(s)
m = s // 60
s = s % 60
h = m // 60
m = m % 60
print(h, m, s, sep=':')

Solution (Python):
S = int(input())
h = int(S / 3600)
m = int((S - 3600 * h) / 60)
s = S - 3600 * h - 60 * m
print(str(h) + ':' + str(m) + ':' + str(s))

Solution (Python):
S = int(raw_input())
h = int(S/3600)
m = int((S - (3600 * h))/60)
s = S - (3600 * h) - (60 * m)
print str(h) + ":" + str(m) + ":" + str(s)

Solution (Python):
s = int(input())
h = s // 3600
m = (s - h * 3600) // 60
s = s -  h * 3600 - m * 60
print(h, m, s, sep=":")

Solution (Python):
S = int(input())
print('{0}:{1}:{2}'.format(S//3600, S%3600//60, S%60))

Solution (Python):
S = int(input())
print('{0}:{1}:{2}'.format(S//3600, S%3600//60, S%60))

Solution (Python):
S = int(raw_input())

h = S/3600
m = (S - 3600*h)/60
s = S - 3600*h - 60*m

print '%d:%d:%d' %(h, m, s)

Solution (Python):
S = int(input())
h = S // 3600
m = S % 3600 // 60
s = S % 60
print(h,m,s,sep = ':')

Solution (Python):
instr = input()


sixty = 60

s = int(instr)

h = s // (sixty * sixty)
s = s - h * sixty * sixty
m = s // sixty
s = s - m * sixty

print(str(h) + ':' + str(m) + ':' + str(s))

Solution (Python):
a = int(raw_input())
print "%d:%d:%d"%(a/3600,(a%3600)/60,a%60)

Solution (Python):


s=int(input())
h=int(s/3600)
m=int((s%3600)/60)
s=(s%3600)%60
print(h,':',m,':',s, sep='')

Solution (Python):
if __name__ == '__main__':
	S = int(input())
	h = S // 3600
	S %= 3600
	m = S // 60
	S %= 60
	
	print("%d:%d:%d" %(h, m, S))

Solution (Python):
n=int(input())
h=int(n/3600)
m=int((n%3600)/60)
s=n%60
print(str(h)+":"+str(m)+":"+str(s))

Solution (Python):
S=int(input(''))

a=int(S)//60
s=int(S)%60

h=int(a)//60
m=int(a)%60

print(h,m,s,sep=':')

Solution (Python):
s = int(input())
h = 0
m = 0
while s >= 3600:
    s -= 3600
    h += 1
while s >= 60:
    s -= 60
    m += 1
print(str(h) + ":" + str(m) + ":" + str(s))

Solution (Python):
S = int(input())
print(S//3600, S//60%60, S%60, sep = ':')

Solution (Python):

"""
Created on Tue Jan 09 20:51:06 2018

@author: Fujiichang
"""

if __name__ == "__main__":
    sec = input()

    h = sec / 3600
    m = (sec % 3600) / 60
    s = (sec % 60) % 60

    print '%d:%d:%d' % (h, m, s)

Solution (Python):
S = int(input())
h = S // 3600
S %= 3600
m = S // 60
s = S % 60
print(f"{h}:{m}:{s}")

Solution (Python):
t=int(input())
print(f"{t//3600}:{t//60%60}:{t%60}")

Solution (Python):
seconds = int(input())

h = int(seconds/3600)
m = int((seconds-h*3600)/60)
s = seconds-h*3600-m*60

print('{0}:{1}:{2}'.format(h, m, s))

Solution (Python):
N = int(input())
h, m, s = N//3600, (N%3600)//60, N%60
print("{0}:{1}:{2}".format(h, m, s))

Solution (Python):
S = int(input())
h = int(S//3600)
m = int((S-h*3600)//60)
s = int(S%60)

print('{0}:{1}:{2}'.format(h,m,s))

Solution (Python):
input_lines = int(input())

h = input_lines / 3600

m = input_lines % 3600 / 60

s = input_lines % 3600 % 60

txt = str(int(h))+":"+str(int(m))+":"+str(int(s))

print(txt)

Solution (Python):
S = int(input())
h = S//3600
m = (S%3600)//60
s = S%60
print('%d:%d:%d' %(h,m,s))

Solution (Python):
sho, s = divmod(int(input()), 60)
h, m = divmod(sho, 60)
print("{}:{}:{}".format(h, m, s))

Solution (Python):
x = int(raw_input())
m = x/60
h = m/60
m = m%60
s = x%60
print(str(h)+":"+str(m)+":"+str(s))

Solution (Python):
x = int(input())
print(x // 3600, x // 60 % 60, x % 60, sep = ':')

Solution (Python):
n=int(input())
h=int(n/(60*60))
m=int((n/60)%60)
s=int(n%60)
print(h,m,s,sep=":")

Solution (Python):

S = int(input())

hour = int(S / (60 * 60))
minutes = int((S % (60 * 60)) / 60)
seconds = int((S % (60 * 60)) % 60)

watch = str(hour) + ":" + str(minutes) + ":" + str(seconds)

print(watch)

Solution (Python):


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

Solution (Python):
def get_watch(s):
    return '{}:{}:{}'.format(s // 3600, s % 3600 // 60, s % 3600 % 60)

if __name__ == '__main__':
    s = int(input())
    print(get_watch(s))

Solution (Python):
i = int(input())

h = i // 3600
m = (i // 60) - (h * 60)
s = i - (h * 3600) - (m * 60)

print('{}:{}:{}'.format(h,m,s))

Solution (Python):
sec = int(input())
tmp = map(str, [sec // 3600, (sec // 60) % 60, sec % 60])
print(':'.join(tmp))

Solution (Python):
S = int(input())

h = str(int(S/3600))
m = str(int((S%3600)/60))
s = str(int(S%60))

print(h+":"+m+":"+s)

Solution (Python):
t=int(input())
h=t//3600
m=(t-3600*h)//60
s=t%60

print(str(h)+":"+str(m)+":"+str(s))

Solution (Python):
second = int(input())
ss = second%60
mm = (second//60)%60
hh = (second//60)//60
print(str(hh)+':' + str(mm)+ ':' + str(ss))

Solution (Python):
input_s = int(input())
h = input_s // 3600
rest_s = input_s % 3600
m = rest_s // 60
s = rest_s % 60
print('{}:{}:{}'.format(h, m, s))

Solution (Python):
S = int(input())
h, S = S // 3600, S % 3600
m, s = S // 60, S % 60
print("{}:{}:{}".format(h, m, s))

Solution (Python):
second = int(input())
h = second // 3600
m = (second % 3600) // 60
s = (second % 3600) % 60
print(str(h) + ':' + str(m) + ':' + str(s))

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

Solution (Python):
a = int(input())
h = a // 3600
m = (a - h * 3600) // 60
s = (a - h * 3600 - m * 60)
print (h,m,s,sep=":")

Solution (Python):


n = int(input())

h = int(n / 3600)
m = int((n - (3600 * h)) / 60)
s = int((n - (3600 * h) - (60 * m)))

print(str(h) + ":" + str(m) + ":" + str(s))

Solution (Python):



import sys

s = int(sys.stdin.readline())
second = s % 60
minutes = (s // 60) % 60
hour = s // 3600

print(hour, minutes, second, sep=':')

Solution (Python):
import sys
seconds = int(sys.stdin.readline())
hour = int(seconds/3600)
seconds %= 3600
minute = int(seconds/60)
seconds %= 60
print(hour,":",minute,":",seconds,sep='')

Solution (Python):
S=int(input())
h=S//3600
m=(S%3600)//60
s=S-((h*3600)+(m*60))
print(h,m,s, sep=':')

Solution (Python):
S=int(input())
h=str(int(S/3600))
m=str(int(S/60)%60)
s=str(S%60)
print(h+":"+m+":"+s)

Solution (Python):
s = int(input())
print(s//3600, s//60%60, s%60, sep=":")

Solution (Python):
time = int(input())

hour = int(time / 3600)
minute = int((time - 3600 * hour) / 60)
second = int(time - 3600 * hour - minute * 60)

print(str(hour) + ":" + str(minute) + ":" + str(second))

Solution (Python):
data = int(input())
print(str(data//3600) + ":" + str((data//60)%60) + ":" + str(data%60))

Solution (Python):
data = int(input())
print(data//3600, (data//60)%60, data%60, sep = ":")

Solution (Python):
data = int(input())
print(data//3600, (data//60)%60, data%60, sep = ":")

Solution (Python):
data = int(input())
print(data//3600, (data//60)%60, data%60, sep = ":")

Solution (Python):
S = input()

h = S/3600
m = (S % 3600)/60
s = (S % 3600)%60

print(str(h)+':'+str(m)+':'+str(s))

Solution (Python):
while True:
    S = input()
    S = int(S)
    if S >= 0 and S <= 86400:
        break
    
h = S//3600
m = (S-h*3600)//60
s = S-h*3600-m*60

print('{0}:{1}:{2}' .format(h, m, s))

Solution (Python):
import sys
input_data = int(input())

if __name__ == '__main__':
    hours = int(input_data / 3600)
    minutes = int((input_data - hours * 3600) / 60)
    seconds = int((input_data - hours * 3600 - minutes * 60))
    print('{0}:{1}:{2}'.format(hours, minutes, seconds))

Solution (Python):
x = int(input())
print("{0}:{1}:{2}".format(x // 3600, x // 60 % 60, x % 60 ))

Solution (Python):
def getime(n):
    h = m = s = int()
    while n >= 3600:
        n -= 3600
        h += 1
    while n >= 60:
        n -= 60
        m += 1
    s = n
    return h, m, s

n = int(input())
h,m,s = getime(n)
print("{}:{}:{}".format(h,m,s))

Solution (Python):
t = int(input())
print(t // 3600, t // 60 % 60, t % 60, sep = ':')

Solution (Python):
s=int(input())
print(s // 3600, s // 60 % 60, s % 60, sep = ':')

Solution (Python):
value = int(input())
print(str(value // 3600) + ":" + str((value // 60) % 60) + ":" + str(value % 60))

Solution (Python):
S = int(input())
print("{0}:{1}:{2}".format(S // 60**2, S // 60 % 60, S %60))

Solution (Python):
s = int(input())
hour = s // 3600
s2 = s - (hour * 3600)
min = s2 // 60
sec = s2 - (min * 60)
print(str(hour) + ":" + str(min) + ":" + str(sec))

Solution (Python):


if __name__=='__main__':
    S = int(raw_input())
    h = S/60/60
    m = S/60 - h*60
    s = S % 60
    print '{}:{}:{}'.format(h, m, s)

Solution (Python):
t = int(input())
print("{0}:{1}:{2}".format(t//3600, (t%3600)//60, t%60))

Solution (Python):
s = int(input())

m = s // 60
h = m // 60
m = m % 60
s = s % 60

output=""
output+=str(h)
output+=":"
output+=str(m)
output+=":"
output+=str(s)

print(output)

Solution (Python):
S = int(input())
m = S // 60
s = S % 60
h = m // 60
m = m - h * 60
print(f"{h}:{m}:{s}")

Solution (Python):
import math
S=int(input())

h=math.floor(S/3600)
m=math.floor(S%3600/60)
s=S-h*3600-m*60

print(str(h)+":"+str(m)+":"+str(s))

Solution (Python):
s = int(input())
sec = int(s % 60)
hm = int(s // 60)
if hm == 0:
    print('0:0:' + str(sec))
else:
    m = int(hm % 60)
    h = int(hm // 60)
    print(str(h) + ':' + str(m) + ':' + str(sec))

Solution (Python):
x=int(input())


print(x//3600,x//60%60,x%60,sep=':')

Solution (Python):
num = int(input())
h = num//3600
m = (num%3600)//60
s = ((num%3600)%60)
print(str(h) + ":" + str(m) + ":" + str(s))

Solution (Python):
a =input()
a =int(a)
b = int(a/3600)
c = int((a%3600)/60)
d = int(a%60)
print(str(b) + ":" + str(c) + ":" + str(d))

Solution (Python):
S = int(input())
h = S / 3600
m = (S % 3600) / 60
s = S % 60
print('%d:%d:%d' % (h, m, s))

Solution (Python):
a = int(input())
b = str(a // 3600)
c = a % 3600
d = str(c // 60)
e = str(c % 60)
print(b + ':' + d + ':' + e)

Solution (Python):
s=int(input())
print("{0}:{1}:{2}".format(s//3600,s//60%60,s%60))

Solution (Python):
temp = int(input())


hour = temp//3600

min = (temp%3600)//60

sec = (temp%3600)%60

answer = str(hour)+":"+str(min)+":"+str(sec)

print(answer)

Solution (Python):
second = input()
ls = int(second)
h = ls // 3600
m = (ls % 3600) // 60
s = ls % 3600 % 60

print(str(h) + ":" + str(m) + ":" + str(s))

Solution (Python):
S = int(input())
 
hour = int(S / (60*60))
min = int(S % (60*60) / 60)
sec = int(S % 60)

print (':'.join(map(str,[hour,min,sec])))

Solution (Python):
s = int(input())
print(':'.join(map(str, (s // 3600, s // 60 % 60, s % 60))))

Solution (Python):





def main(x):
    s = int(x % 60)
    m = int((x - s) / 60 % 60)
    h = int((x - m * 60 - s) / 60 / 60)
    print('{}:{}:{}'.format(h, m, s))
    
    
if '__main__' == __name__:
    try:
        while True:
            main(int(input().strip()))
    except EOFError:
        pass

Solution (Python):


S = int(input())
h = S//3600
m = (S%3600)//60
s = S%60

print(h,m,s, sep=':')

Solution (Python):
import math
t=int(input())
h=math.floor(t/3600)
m=math.floor((t-h*3600)/60)
s=t-h*3600-m*60
print(str(h) + ":" + str(m) + ":" + str(s))

Solution (Python):
time =int(input())
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))

Solution (Python):
time =int(input())
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))

Solution (Python):
s = int(input())
h = int(s / (60*60))
s2 = int(s - h*(60*60))
m = int(s2 / 60)
s3 = int(s2 - m*60)
print(str(h) + ":" + str(m) + ":" + str(s3))

Solution (Python):
from math import modf
S = int(input())
decimal_min, h = modf(S/3600)
decimal_sec, m = modf(decimal_min * 60)
s = round(decimal_sec * 60)
print(str(int(h)) + ':' + str(int(m)) + ':' + str(s))

Solution (Python):
S =int(input())
h = int(S // 3600)
m = int(S % 3600 // 60)
s = int(S % 3600 % 60)
print(str(h) + ':' + str(m) + ':' + str(s))

Solution (Python):
import sys


def num_rest(num, base):
    return num % base, num / base


for line in sys.stdin:
    time = int(line)
    sec, rest = num_rest(time, 60)
    min, hour = num_rest(rest, 60)
    print(str(int(hour)) + ":" + str(int(min)) + ":" + str(int(sec)))

Solution (Python):
timeS = int(input())
h = int(timeS / 3600)
restH = timeS % 3600
m = int(restH / 60)
s = restH % 60
print(str(h) + ":" + str(m) + ":" + str(s))

Solution (Python):



sec_input = input()
hour = sec_input / (60**2)
minute = (sec_input - hour * 60**2) / 60
second = sec_input - (hour * 60**2 + minute * 60)

print(repr(hour) + ':' + repr(minute) + ':' + repr(second))

Solution (Python):
s = input()
s = int(s)
h = s // 3600
s = s - (3600 * h)
m = s // 60
s = s - (60 * m)
print(h,':',m,':',s,sep='')

Solution (Python):
inputtime = int(input())
print(inputtime // 3600, inputtime // 60 % 60, inputtime % 60, sep=':')

Solution (Python):
s = int(input())
h = s//3600
m = (s-h*3600)//60
s2 = s-h*3600-m*60
print("%d:%d:%d" % (h,m,s2))

Solution (Python):
S = int(input())
h = S // 3600
m = S % 3600 // 60
s = S % 60
print(str(h)+":"+str(m)+":"+str(s))

Solution (Python):
S = input()
h = S/3600
tmp = S - h*3600
m = tmp/60
s = tmp - m*60
print str(h)+":"+str(m)+":"+str(s)

Solution (Python):
n = int(input())
print("{0}:{1}:{2}".format(int(n/3600),int((n%3600)/60),(n%3600)%60))

Solution (Python):
n = int(input())
print("{0}:{1}:{2}".format(int(n/3600),int((n%3600)/60),(n%3600)%60))

Solution (Python):
n = int(input())
print("{0}:{1}:{2}".format(int(n/3600),int((n%3600)/60),(n%3600)%60))

Solution (Python):
sec = int(input())
hour = sec // (60 * 60)
sec = sec - (hour * 60 * 60)
min = sec // 60
sec = sec - (min * 60)
print(hour, min, sec, sep = ':')

Solution (Python):
input_line = raw_input()

t = int(input_line)
h = t//3600
m = (t - h*3600)//60
s = t - h*3600 - m*60
print(str(h) + ":" + str(m) + ":" + str(s))

Solution (Python):
x = int(input())
print(x // 3600, x // 60 % 60, x % 60, sep = ":")

Solution (Python):


S = int(input())
h, S = divmod(S, 3600)
m, s = divmod(S, 60)
print('{0}:{1}:{2}'.format(h, m, s))

Solution (Python):
time = int(input())
print("{0}:{1}:{2}".format(time//3600, time % 3600 // 60, time % 3600 % 60))

Solution (Python):
N = int(input())
print('{0}:{1}:{2}'.format(N // 3600,  N % 3600// 60, N % 60))

Solution (Python):
time = int(input())
print("{0}:{1}:{2}".format(time // 3600, time % 3600 // 60, time % 3600 % 60))

Solution (Python):
s=int(input())
print(s//3600, s//60%60, s%60, sep=":")

Solution (Python):
s=int(input())
u=60
print(s//u//u, s//u%u, s%u, sep=":")

Solution (Python):
u,s=60,int(input())
print(s//u//u, s//u%u, s%u, sep=":")

Solution (Python):
S = int(input())
print(S//3600,(S%3600)//60,S%60,sep=':')

Solution (Python):
x = int(input())
s = x % 60
x //= 60
m = x % 60
x //= 60
print("{}:{}:{}".format(x, m, s))

Solution (Python):
line = int(input())

h = int(line / 3600)

m = int(line % 3600 / 60)

s = int(line % 3600 % 60)

print(str(h) + ':' + str(m) + ':' + str(s))

Solution (Python):
i = int(input())

h = 0
m = 0

if i/3600 >= 1:
    h = int(i/3600)
    i = i - 3600 * h
if i/60 >= 1:
    m = int(i/60)
    i = i - 60 * m
    
s = str(h) + ":" + str(m) + ":" + str(i)

print(s)

Solution (Python):
x = int(input())

h = x // 3600
m = x % 3600 // 60
s = x  % 60

print(h,m,s,sep=':')

Solution (Python):
t = int(input())
a,b = divmod(t,3600)
c,d = divmod(b,60)

print(":".join(map(str,[a,c,d])))

Solution (Python):


def time_shift(s):
    time={}
    time["hour"]=(s//3600)
    time["munite"]=((s%3600)//60)
    time["second"]=((s%3600)%60)
    return time
def Watch():
    S=int(input())
    time=time_shift(S)
    print("{}:{}:{}".format(time["hour"],time["munite"],time["second"]))

if __name__ == "__main__":
    Watch()

"""
C:\programs\program_training\AizuOnlineJudge>python ITP1_1_D.py
46979
13:2:59

"""

Solution (Python):
def time_shift(s):
    time={}
    time["hour"]=(s//3600)
    time["munite"]=((s%3600)//60)
    time["second"]=((s%3600)%60)
    return time
def Watch():
    S=int(input())
    time=time_shift(S)
    print("{}:{}:{}".format(time["hour"],time["munite"],time["second"]))

if __name__ == "__main__":
    Watch()

Solution (Python):
S = int(input())
print(S//3600,(S%3600)//60,S%60,sep=":")

Solution (Python):
S = int(input())
print(S//3600,(S%3600)//60,S%60,sep=":")

Solution (Python):
x = int(input())
s = x % 60
m = int(x / 60)
h = int(m / 60)
m = m % 60
print(h,":",m,":",s,sep='')

Solution (Python):
x = int(input())
print(x//3600,end="")
print(':',end="")
print((x//60)%60,end="")
print(':',end="")
print(x%60)

Solution (Python):
a=int(input())
h=int(a//3600)
m=int((a%3600)//60)
s=int((a%3600)%60)
print("%d:%d:%d"%(h,m,s))

Solution (Python):
s=int(raw_input())
print "%d:%d:%d" %(s/3600,s/60%60,s%60)

Solution (Python):
S = int(input())
h = S // 3600
m = S % 3600 // 60
s = S % 60
print(h, m, s, sep=":")

Solution (Python):
S = int(input())
print(S//3600, S//60%60, S%60, sep=":")

Solution (Python):
x = int(input())

print(x//3600, x//60 % 60, x%60, sep=":")

Solution (Python):
S = int(input())
print(str(int( S / 3600 )) + ':' + str(int(( S % 3600 ) / 60)) + ':' + str( S % 60))

Solution (Python):
x = int(input())
h =x/3600
m =(x/60)%60
sec = x%60
str = "%d:%d:%d"%(h,m,sec)
print(str)

Solution (Python):
t = int(input())
h = t // 3600
m = (t % 3600) // 60
s = (t % 3600) % 60
print("{0}:{1}:{2}".format(h, m, s))

Solution (Python):
S=int(input())
print(S//3600,S//60%60,S%60,sep=":")

Solution (Python):



import math

S = int(input())
h = math.floor(S/3600)
m = math.floor((S%3600)/60)
s = math.floor((S%60))
print(str(h) + ':' + str(m) + ':' + str(s))

Solution (Python):
s = int(input())
a, b = divmod(s, 60)
c, d = divmod(a, 60)
print("{}:{}:{}".format(c, d, b))

Solution (Python):
ts = int(input())

h = ts//3600
m = (ts%3600)//60
s = (ts%60)

print('{}:{}:{}'.format(h,m,s))

Solution (Python):
s=int(input())
a=60
print(s//a**2,s//a%a,s%a,sep=':')

Solution (Python):
s=int(input())
a=60
print(f'{s//a**2}:{s//a%a}:{s%a}')

Solution (Python):
s=int(input())
print(s//3600,s//60%60,s%60,sep=':')

Solution (Python):
s=int(input())
h=int(s/3600)
m=int((s%3600)/60)
sec=int(s%3600%60)
print('{}:{}:{}'.format(h,m,sec))

Solution (Python):
input_second = int(input())
if input_second < 0 and input > 86400:
    print("not correct")
hour = input_second // (60 * 60)
minute = (input_second - (hour * 60 * 60)) // 60
second = (input_second % (60 * 60)) % 60
print(str(hour) + ":" + str(minute) + ":" + str(second))

Solution (Python):
s = int(input())
h = s // 3600
s %= 3600
m = s // 60
s %= 60
print(h, m, s, sep = ':')

Solution (Python):
large_second = int(input())
hour = large_second // 3600
minute = (large_second - hour *3600) //60
second = large_second % 60
print(hour,":",minute,":",second,sep="")

Solution (Python):
S = int(input())
h, ms = divmod(S, 3600)
m, s = divmod(ms, 60)
print("{0}:{1}:{2}".format(h, m, s))

Solution (Python):
S=int(input())
h=int(S/3600)
m=int(S%3600/60)
s=int(S%3600%60)
print(f"{h}:{m}:{s}")

Solution (Python):

import math


def main():
    time = int(input())  
    h = math.floor(time / 3600) 
    m = math.floor((time - h*3600) / 60)    
    s = time - h*3600 - m*60    
    print('{0}:{1}:{2}'.format(h, m, s))


main()

Solution (Python):
x=int(input())
print(int(x/3600),int(x/60%60),x%60,sep=":")

Solution (Python):
seconds = int(input())
print(":".join([str(n) for n in [seconds//60//60,seconds//60%60, seconds%60]]))

Solution (Python):
def main():
    s = int(input())
    h = s // 3600
    s -= h * 3600
    m = s // 60
    s -= m * 60
    print('%d:%d:%d' % (h, m, s))

if __name__ == "__main__":
    main()

Solution (Python):
Sec = input()
S = int(Sec)
h = int(S/3600)
m = int(S%3600/60)
s = S%3600%60
st=(str(h)+':'+str(m)+':'+str(s))
print(st)



'''
8000s
h=2
8000%60=20
'''