Problem:


  MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});

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



Sample input:
46979


Sample output:
13:2:59

Submission status: Accepted

Solution code:
line = raw_input()
t = int(line)
s = divmod(t, 60)
m = divmod(s[0], 60)
print "%d:%d:%d" % (m[0], m[1], s[1])

Submission status: Accepted

Solution code:
t = input()
s = divmod(t, 60)
m = divmod(s[0], 60)
print "%d:%d:%d" % (m[0], m[1], s[1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t = input()
s = divmod(t,60)
hm = divmod(s[0],60)
print "%d:%d:%d" % (hm[0],hm[1],s[1])

Submission status: Accepted

Solution code:
S = int(input())
#print(S)
h = int(S / 3600)
#print(h)
m = int((S - 3600 * h) / 60)
s = S - 3600 * h - 60 * m
print(str(h) + ":" + str(m) + ":" + str(s))

Submission status: Accepted

Solution code:
a = int(input())
h = str(a//(60*60))
m = str(a%(60*60)//60)
s = str(a%(60*60)%60)
print(h+':'+m+':'+s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())
print("{0}:{1}:{2}".format(*map(int, [s/3600, s%3600/60, s%60])))

Submission status: Accepted

Solution code:
N = int(input())
s = N % 60
N = N // 60
m = N % 60
N = N // 60
h = N % 24
print('{}:{}:{}'.format(h,m,s))

Submission status: Accepted

Solution code:
# coding: UTF-8
# ?§???????????????? S ???????????????????????§???h:m:s ?????¢?????????????????????????????????????????????
# ????????§???h ????????????m ??? 60 ???????????????s ??? 60 ??????????§???¨????????????

S = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time=input()

hour=time/3600
time=time%3600

minute=time/60
second=time%60

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

Submission status: Accepted

Solution code:
n = int(input())
if (n < 60):
    h = 0
    m = 0
    s = n
else:
    s = n % 60
    h = n // 3600
    m = (n - (h * 3600) - s) / 60
print('{}:{:.0f}:{}'.format(h, m, s))

Submission status: Accepted

Solution code:
x = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=int(input())
print(str(int(s/3600))+":"+str(int(s%3600/60))+":"+str(s%60))

Submission status: Accepted

Solution code:
S = int(raw_input())
m,s = divmod(S, 60)
h,m = divmod(m, 60)
print "%d:%d:%d" % (h,m,s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=int(input())
h=a/3600
b=a-int(h)*3600
m=b/60
c=b-int(m)*60
print(int(h),int(m),c,sep=":")

Submission status: Accepted

Solution code:
time=int(input())
sec=time%60
min=(time//60)%60
hour=time//3600
print(hour,min,sec,sep=':')

Submission status: Accepted

Solution code:
s = int(input())
x = [s // 3600, ":", (s % 3600) // 60, ":", (s % 3600) % 60]
for i in x:
    print(i, end = "")
print("")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: UTF-8

def Watch(S):
    h = int(S/3600)
    m = int((S%3600)/60)
    s = int((S%3600)%60)
    return h,m,s

if __name__=="__main__":
    S = input()
    h,m,s = Watch(int(S))
    print(str(h)+":"+str(m)+":"+str(s))

Submission status: Accepted

Solution code:
t = input();
tm = t / 60
s = t % 60
h = tm / 60
m = tm % 60

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t = int(input())

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

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

Submission status: Accepted

Solution code:
n = int(input())
print(n//3600,n//60%60,n%60,sep=":")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
__author__ = 'CIPHER'

time = int(input())
#print(time)

hour = int(time/3600)
time = time%3600
#print("time",time)
minute = int(time/60)
time = time%60
#print("time",time)
second = int(time)
print(hour,minute,second,sep=':')

Submission status: Accepted

Solution code:
s = int(input())
h = s//3600
m = s%3600//60
sc = s%3600%60

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
large_seconds= int(input())
s= large_seconds%60
large_minites= int((large_seconds-s)/60)
m= large_minites%60
h= int((large_minites-m)/60)
h=str(h)
m=str(m)
s=str(s)
print(h+":"+m+":"+s)

Submission status: Accepted

Solution code:
total_seconds = int(input())
hours = total_seconds / (60 * 60)
minutes = (total_seconds % (60 * 60)) / 60
seconds = (total_seconds % (60 * 60)) % 60
print("%d:%d:%d" % (hours, minutes, seconds))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
z=input()
s = int(z)
h = s//3600
s-=h*3600
m = s//60
s-= m*60

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
x = input()
h = int(x) / 3600
m = (int(x) % 3600) / 60
s = int(x) - int(h) * 3600 - int(m) * 60
print('%d:%d:%d'%(h,m,s))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

s = int(raw_input())
h, s = divmod(s, 60 * 60)
m, s = divmod(s, 60)
print "{}:{}:{}".format(h,m,s)

Submission status: Accepted

Solution code:
S = int(input())
h = int((S - (S % 3600)) / 3600)
m = int(((S - (h * 3600)) - (S - (h * 3600)) % 60) / 60)
s = int(S - (h * 3600 + m * 60))
print('{0}:{1}:{2}'.format(h, m, s))

Submission status: Accepted

Solution code:
line = int(input())
time = []
time.append(line//3600)
time.append((line-time[0]*3600)//60)
time.append(line%60)
print('{h}:{m}:{s}'.format(h=time[0],m=time[1],s=time[2]))

Submission status: Accepted

Solution code:
a = int(input())
h = int(a / 3600)
m = int((a - h * 3600) / 60)
s = int(a - h * 3600 - m * 60)
print(":" .join(map(str, [h, m, s])))

Submission status: Accepted

Solution code:
inp = int(input())
hour = int(inp/3600)
inp = inp%3600
minute = int(inp/60)
second = inp%60
print("{}:{}:{}".format(hour, minute, second))

Submission status: Accepted

Solution code:
S = int(input())
print("%d:%d:%d" % (S // 3600, S % 3600 / 60, S % 60))

Submission status: Accepted

Solution code:
sec = int(input())
h = int(sec / 3600)
m = int((sec - 3600 * h) / 60)
s = sec - 3600 * h - 60 * m
print(str(h) + ":" + str(m) + ":" + str(s))

Submission status: Accepted

Solution code:
# coding: utf-8
S=int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
print "%d:%d:%d"%(n/3600, n%3600/60, n%60)

Submission status: Accepted

Solution code:
if __name__ == "__main__":
	a = int(input())

	h = a / 3600
	a %= 3600

	m = a / 60
	a %= 60

	s = a

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
sec = int(input())
 
minute = sec//60
sec = sec%60
 
hour = minute//60
minute = minute%60
 
print(':'.join(map(str,[hour,minute,sec])))

Submission status: Accepted

Solution code:
import sys

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

hour = input_value/3600
input_value -= hour * 3600
minute = input_value/60
input_value -= minute * 60
second = input_value

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

Submission status: Accepted

Solution code:
m = divmod(int(input()), 60)
h = divmod(m[0], 60)
print(str(h[0]) + ':' + str(h[1]) + ':' + str(m[1]))

Submission status: Accepted

Solution code:
t = int(raw_input())

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

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

Submission status: Accepted

Solution code:
S = int(raw_input())

print "%d:%d:%d" % (S/3600, S/60 % 60, S%60)

Submission status: Accepted

Solution code:
# coding: utf-8

s1 = int(input())
s2 = s1%60
m1 = s1//60
m2 = m1%60
h = m1//60
print(str(h)+":"+str(m2)+":"+str(s2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s =int(input())

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

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

Submission status: Accepted

Solution code:
import time

t = int(input())
h = 0
m = 0
s = 0

t_str = time.gmtime(t)
h, m, s = t_str.tm_hour, t_str.tm_min, t_str.tm_sec
print('{0}:{1}:{2}'.format(h, m, s))

Submission status: Accepted

Solution code:
x = int(input())
a = x // 3600
b = x // 60 %60
c = x % 60

a = str(a)
b = str(b)
c = str(c)
print(":".join([a,b,c]))

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    time_in_second = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t = int(input())
print(t // 3600, t // 60 % 60, t % 60, sep=":")

Submission status: Accepted

Solution code:
import sys
def main():
  for line in sys.stdin:
    time = int(line)
    hour = int(time/3600)
    min = int((time - hour * 3600)/60)
    sec = int((time - hour * 3600 - min * 60))
    print("{0}:{1}:{2}".format(hour, min, sec)) 

if __name__ == "__main__":
  main()

Submission status: Accepted

Solution code:
hoge = raw_input()
h = int(hoge) / 3600
m = int(hoge) / 60 % 60
s = int(hoge) % 60

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c=int(input())
a=int(c/3600)
c%=3600
b=int(c/60)
c%=60
print('{}:{}:{}'.format(a,b,c))

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
S = int(input())

h = int(S / 3600)
m = int((S - 3600 * h)/60)
sec = S - 3600 * h - 60 * m

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

Submission status: Accepted

Solution code:
S = int(input())
h = S // 60**2
S = S % 60**2
m = S // 60
S = S % 60
s = S
print(str(h) + ":" + str(m) + ":" + str(s))

Submission status: Accepted

Solution code:
sec = int(input())
h = int(sec/3600)
#print(h)
h_mod = int(sec%3600)
#print(h_mod)
min = int(h_mod//60)
min_mod = int(h_mod%60)
#print(min)
#print(min_mod)
print ( str(h) + ":" + str(min) + ":" + str(min_mod) )

Submission status: Accepted

Solution code:
input_sec = int(raw_input())

hour = str(input_sec / 3600)
min = str(input_sec % 3600 / 60)
sec = str(input_sec % 3600 % 60)

print hour + ':' + min + ':' + sec

Submission status: Accepted

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

Submission status: Accepted

Solution code:
second = int(input(""))

if second >= 0 and second < 86400:
    h = int(second / 3600)
    m = int((second % 3600) / 60)
    s = int(((second % 3600) % 60) % 60)

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

Submission status: Accepted

Solution code:
x = int(input())
# x = 46979
h = x // 3600
m = x % 3600//60
s = x % 3600 % 60
print('{}:{}:{}'.format(str(h), str(m), str(s)))

Submission status: Accepted

Solution code:
seconds = int(raw_input())
hour = seconds / 3600
minute = (seconds - (hour * 3600)) / 60
second = seconds - (hour * 3600) - (minute * 60)
print(str(hour) + ':' + str(minute) + ':' + str(second))

Submission status: Accepted

Solution code:
seconds = int(raw_input())
hour = seconds / 3600
minute = seconds % 3600 / 60
second = seconds - (hour * 3600) - (minute * 60)
print('%d:%d:%d'%(hour, minute, second))

Submission status: Accepted

Solution code:
ss = int(input())
s = ss % 60
m = (ss//60) % 60
h = (ss//60) // 60
print("%d:%d:%d" % (h,m,s))

Submission status: Accepted

Solution code:
# coding: utf-8
S = int(input())
h = S // 3600
m = (S - h * 3600) // 60
s = S - h * 3600 - m * 60
print(str(h) + ":" + str(m) + ":" + str(s))

Submission status: Accepted

Solution code:
# coding: utf-8
S = int(input())
print(S // 3600,S % 3600 // 60,S % 60,sep=":")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

S = int(input())

h = S//(60*60)
S = S%(60*60)
m = S//60
S = S%60
s = S
print(h,m,s,sep=':')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = int(input())

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())
h=S//3600
m=S%3600//60
s=S%60
print (":".join([str(h), str(m), str(s)]))

Submission status: Accepted

Solution code:
S = int(input())

if S >= 3600:
    h=S//3600
    m=S%3600//60
    s=S%60
elif 3600 > S >= 60:
    h=0
    m=S//60
    s=S%60
else:
    h=m=0
    s=S
print(h, m, s, sep=":")

Submission status: Accepted

Solution code:
S = int(input())
h = S // 3600
m = (S % 3600) // 60
s = (S % 3600) % 60
fmt = "{a}:{b}:{c}"
g = fmt.format(a = h,b = m,c = s)
print(g)

Submission status: Accepted

Solution code:
S = int(raw_input())
h,i = divmod(S,3600)
m,s = divmod(i,60)
print "%s:%s:%s"% (h,m,s)

Submission status: Accepted

Solution code:
t = int(input())
h = t // 3600
tmp = t % 3600
m = tmp // 60
s = tmp % 60
print('{h}:{m}:{s}'.format(**locals()))

Submission status: Accepted

Solution code:
import fileinput

#for line in fileinput.input():
#    tokens = list(map(int, line.strip().split()))
#    a, b = tokens[0], tokens[1]
#    print(a*b, 2*(a+b))

a = int(input())
h = int(a / (60*60))
m = int((a / 60) % 60)
s = int(a % 60)


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

Submission status: Accepted

Solution code:
input_data = int(raw_input())

hour = input_data / 3600
minute = (input_data - hour * 3600) / 60
second = input_data % 60
print("%d:%d:%d") % (hour,minute,second)

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

Solution code:
def printTime(s):
    """
    s: integer (seconds)

    >>> printTime(10)
    0:0:10
    >>> printTime(60)
    0:1:0
    >>> printTime(45296)
    12:34:56
    """
    hour = s // 3600
    s %= 3600

    minute = s // 60
    s %= 60

    second = s

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


if __name__ == '__main__':


    time = int(input())
    printTime(time)

Submission status: Accepted

Solution code:
#!usr/bin/env python3

def seconds_to_hms_format(seconds):
    m, s = divmod(int(seconds), 60)
    h, m = divmod(m, 60)
    return "%d:%d:%d" % (h, m, s)

def main():
    seconds = input()
    print(seconds_to_hms_format(seconds))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S=input()
h,m,s=1,1,0.0
h=S/3600
m=(S-h*3600)/60
s=(S-h*3600-m*60) 
print ':'.join(map(str,[h,m,s]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!usr/bin/env python3

def seconds_to_hms_format(seconds):
    m, s = divmod(int(seconds), 60)
    h, m = divmod(m, 60)
    return "%d:%d:%d" % (h, m, s)


def main():
    seconds = input()
    print(seconds_to_hms_format(seconds))


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t=int(raw_input())
print "%d:%d:%d"%((t/3600),(t/60)%60,t%60)

Submission status: Accepted

Solution code:
sec = int(input())

hms = [0]*3
for i in range(3):
    tmp = int(sec % 60)
    hms[i] = tmp
    sec = int((sec-tmp)/60)

hms.reverse()

print(str(hms[0])+':'+str(hms[1])+':'+str(hms[2]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_data = int(input())
[temp_s, s] = divmod(input_data, 60)
[temp_s, m] = divmod(temp_s, 60)
[temp_s, h] = divmod(temp_s, 60)
print(str(h) + ":" + str(m) + ":" + str(s))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
input_str = input()

input_tuple = divmod(int(input_str), 3600)

output_str = str(input_tuple[0]) + ":"

input_tuple = divmod(input_tuple[1], 60)

output_str += str(input_tuple[0]) + ":" + str(input_tuple[1])

print(output_str)

Submission status: Accepted

Solution code:
S=int(input())

h = S//3600
S = S%3600

m = S//60
s = S%60

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

Submission status: Accepted

Solution code:
x=input()
h=x/60**2
m=(x-h*60*60)/60
s=x-h*60*60-m*60
print str(h)+":"+str(m)+":"+str(s)

Submission status: Accepted

Solution code:
x=int(input())
h=x/(60*60)
m=x%3600/60
s=x%3600%60
print(int(h),int(m),int(s),sep=":")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
# -*- coding:utf-8 -*-
import sys
from datetime import time

def init():
    data = []
    try:
        while(True):
            line = raw_input()
            if not line: break
            data.append(line)
    except EOFError:
        pass
    return data

def valid(n):
    return (1 <= n <= 100)

def sec2hms(s):
    m , sec = dev_and_mod(s, 60)
    hour, mi = dev_and_mod(m, 60)
    return (hour, mi, sec)
    
def dev_and_mod(n, d):
    return (n/d, n%d)

def main():
    print "%d:%d:%d" % sec2hms(int(init().pop()))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
sec = int(input())
h = int(sec / 3600)
m = int((sec - h * 3600) / 60)
print(":".join(list(map(str, [h, m, sec - h * 3600 - m * 60]))))

Submission status: Accepted

Solution code:
import datetime

n = int(input().rstrip())


#??????
int_hour = n // 3600
int_minute = (n % 3600) // 60
int_second = n- int_hour*3600 - int_minute * 60

# ??????????????????
print(int_hour,int_minute, int_second, sep=":" )

Submission status: Accepted

Solution code:
n = int(input().rstrip())


#??????
int_hour = n // 3600
int_minute = (n % 3600) // 60
int_second = n- int_hour*3600 - int_minute * 60

# ??????????????????
print(int_hour,int_minute, int_second, sep=":" )

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
b,c = divmod(a,3600)
d,e = divmod(c,60)
print(b,d,e,sep=':')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    S = int(input())
    s = S%60
    S = int(S/60)
    m = S%60
    h = int(S/60)

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

Submission status: Accepted

Solution code:
tmp = int(input())
hour = tmp // 3600
minute = (tmp - hour * 3600) // 60
second = (tmp - hour * 3600 - minute * 60)
print ("{}:{}:{}".format(hour, minute, second))

Submission status: Accepted

Solution code:
s = int(raw_input())
print str(s//3600)+":"+str((s%3600)//60)+":"+str((s%60))

Submission status: Accepted

Solution code:
s  = int(input())
print(s // 3600, end="")
print(":", end="")
print(s // 60 % 60, end="")
print(":", end="")
print(s % 60)

Submission status: Accepted

Solution code:
a=int(input())
hour=int(a/3600)
minutes=int((a%3600)/60)
seconds=int(((a%3600)%60))
print(str(hour)+":"+str(minutes)+":"+str(seconds))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())
if s >=3600:
    print(int(s/3600),end=":")
    print(int(s/60%60),end=":")
    print(int(s%60))
else:
    print(0,end=":")
    print(int(s/60),end=":")
    print(int(s%60))

Submission status: Accepted

Solution code:
value = int(input())
ss = value % 60
mm = (value // 60) % 60
hh = (value // 60) // 60

print("{}:{}:{}".format(hh, mm, ss))

Submission status: Accepted

Solution code:
s = int(input())

H = s // 3600
M = (s - (3600 * H)) // 60
S = (s - (3600 * H)) % 60

print(str(H) + ':' + str(M) + ':' + str(S))

Submission status: Accepted

Solution code:
time=int(input())
H=int(time/3600)
M=int((time-3600*H)/60)
S=int(time-3600*H-60*M)
print(H,end = "")
print(":",end = "")
print(M,end = "")
print(":",end = "")
print(S)

Submission status: Accepted

Solution code:
num = int(input())
print(int(num/3600), int((num%3600)/60), num%60, sep=":")

Submission status: Accepted

Solution code:
time = int(input())
hour, hour_rem = time // (60*60), time % (60*60)
min, min_rem = hour_rem // 60, hour_rem % 60
print('{}:{}:{}'.format(hour, min, min_rem))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
print "%d:%d:%d"%(s/3600, s/60%60, s%60)

Submission status: Accepted

Solution code:
#coding: UTF-8

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())
H = s//3600
M = s//60%60
S = s%60
print(str(H)+":"+str(M)+":"+str(S))

Submission status: Accepted

Solution code:
import datetime

s = int(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))

Submission status: Accepted

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

Submission status: Accepted

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

hour = math.floor(S/3600)
min = math.floor((S-hour*3600)/60)
sec =  S - hour*3600 - min*60

print(str(hour)+":"+str(min)+":"+str(sec))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys
import os
import pprint

#fd = os.open('ITP1_1_D.txt', os.O_RDONLY)
#os.dup2(fd, sys.stdin.fileno())

n = int(input())

h = int(n / 3600)
n -= 3600 * h

m = int(n / 60)
n -= 60 * m

s = n

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
H = N // 3600
M = (N % 3600) // 60
S = N - (H * 3600 + M * 60)
print(str(H) + ":" + str(M) + ":" + str(S))

Submission status: Accepted

Solution code:
# coding: utf-8

time = input().rstrip()

print(str(int(time)//3600) + ":" + str(int(time)%3600//60) + ":" + str(int(time)%3600%60))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
seconds = int(input())

hour = str(seconds // 3600)
minute = str(seconds % 3600 // 60)
second = str(seconds % 3600  % 60)

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

Submission status: Accepted

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

Submission status: Accepted

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