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:
num_time = int(raw_input())
x = []
num_z = num_time/3600
num_h = (num_time%3600)/60
num_b = (num_time%3600)%60
x.append(num_z)
x.append(num_h)
x.append(num_b)
x = map(str, x)
print ":".join(x)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#usr/bin/python

S = raw_input()

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

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

Submission status: Accepted

Solution code:
x = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
target = int(input())

m,s = divmod(target,60)
if m == 0:
    print("0:0:%d" % s)
else:
    h, m = divmod(m,60)
    print("%d:%d:%d" % (h,m,s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(raw_input())
h = s / 3600
tmp = s % 3600
m = tmp / 60
s = tmp %60
time = map(str,[h,m,s])
print time[0]+":"+time[1]+":"+time[2]

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

var = int(raw_input())

h = str(var / 3600)
ms = var % 3600
m = str(ms / 60)
s = str(ms % 60)

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

Submission status: Accepted

Solution code:
# encoding:utf-8

input = input()

second = input % 60
minute = input / 60 % 60
hour = input / 60 / 60 % 60

print(":".join(map(str, (hour, minute, second))))

Submission status: Accepted

Solution code:
num = int(raw_input())
hour = num / (60 * 60)
minute = (num % (60 * 60)) / 60
second = num % 60

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

Submission status: Accepted

Solution code:
#! /usr/bin/env python
# -*- coding: utf-8 -*-

raw_time = int(raw_input())

if 0 <= raw_time < 86400:
    hour = raw_time / 3600
    minute = (raw_time - hour * 3600) / 60
    second = (raw_time - hour * 3600 - minute * 60)
    print("%d:%d:%d") % (hour, minute, second)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
L=[]
s=int(raw_input())
L+=divmod(s,3600)
L+=divmod(L[1],60)
print ("{0}:{1}:{2}").format(L[0],L[2],L[3])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
in_sec = int(raw_input())
sec = in_sec%60
in_sec = (in_sec-sec)/60
min = in_sec%60
h = (in_sec-min)/60
print str(h) + ":" + str(min) + ":" + str(sec)

Submission status: Accepted

Solution code:
input = int(input().strip())

hour = input // 3600
min = (input - 3600*hour) // 60
sec = input - 3600 * hour - 60 * min 

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

Submission status: Accepted

Solution code:
sec = int(input())
m, s = divmod(sec, 60)
h, m = divmod(m, 60)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import *
PI = 3.1415926535898
while True:
    try:
        t = input()
        ans = ""
        ans += str(t/(60*60))
        t %= 60*60
        ans += ":"
        ans += str(t/60)
        t %= 60
        ans += ":"
        ans += str(t)
        print ans
    except EOFError:
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

S = int(sys.stdin.readline())
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:
import sys

line = sys.stdin.readline()
inp = int(line)

h,mod = inp//3600, inp%3600
m,mod = mod//60, mod%60
s = mod

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

Submission status: Accepted

Solution code:
second = int(input())

minute = int(second / 60)
second = int(second % 60)

hour = int(minute / 60)
minute = int(minute % 60)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t = int(input())
h = int(t/3600)
m = int(t%3600/60)
s = int(t%3600%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 = int(S%3600%60)
print(str(h) + ":" + str(m) + ":" + str(s))

Submission status: Accepted

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

s = int(input())

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

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

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

Submission status: Accepted

Solution code:
t = int(input())
h = t//3600
m = int(t%3600/60)
s = int(t%3600%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 ':'.join(map(str,[h,m,s]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
h= 0
m = 0
s = int(raw_input())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()
if S >= 0 and S <= 86400:
   a = S // 3600
   b = S % 3600
   c = b // 60
   d = b % 60
   print "%d:%d:%d" % (a, c, d)

Submission status: Accepted

Solution code:
TimeS = int(raw_input())
TimeM = TimeS / 60
sec = TimeS % 60
hou = TimeM / 60
min = TimeM % 60

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = input()

s = a % 60
a = (a - s) / 60
m = a % 60
a = (a - m) / 60
h = a

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

Submission status: Accepted

Solution code:
s=input()

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

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

Submission status: Accepted

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

h = S / 3600
m = (S - h * 3600) / 60
s = S - 3600 * h - 60 * m
 
print u"%d:%d:%d" % (h,m,s)

Submission status: Accepted

Solution code:
S = int(raw_input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(raw_input())
h = S/3600
m = S%3600/60
s = S%3600%60
h,m,s = map(str,(h,m,s))
print h+':'+m+':'+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:
a = int(input())
print("{}:{}:{}".format(int(a/3600), int(a/60%60), a%60))

Submission status: Accepted

Solution code:
b = int(raw_input())
a = b/60
h = a/60
t = a%60
s = b%60
print'%d:%d:%d'%(h,t,s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
h=S/3600
r=S%3600/60
s=S-h*3600-r*60
print str(h)+':'+str(r)+':'+str(s)

Submission status: Accepted

Solution code:
raw_time = int(raw_input())
 
if 0 <= raw_time < 86400:
    hour = raw_time / 3600
    minute = (raw_time - hour * 3600) / 60
    second = (raw_time - hour * 3600 - minute * 60)
    print("%d:%d:%d") % (hour, minute, second)

Submission status: Accepted

Solution code:
sa = raw_input()
sa = int(sa)

s = sa % 60
ma = sa / 60
m = ma % 60
h = ma / 60

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
raw_time = int(raw_input())
 
if 0 <= raw_time < 86400:
    hour = raw_time / 3600
    min = (raw_time - hour * 3600) / 60
    sec = (raw_time - hour * 3600 - min * 60)
    print("%d:%d:%d")%(hour, min, sec)

Submission status: Accepted

Solution code:


x=input()

l=(x/60)
h=(l/60)
m=(l-h*60)
s=x-m*60-h*60*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 '{0}:{1}:{2}'.format(h, m, s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
s = int(input())
h = math.floor(s / 3600)
tmp = s % 3600
m = math.floor(tmp / 60)
s = tmp % 60
a = [h,m,s]
print(":".join(list(map(str, a))))

Submission status: Accepted

Solution code:
x = input()
a = x/3600
b = x%3600/60
c = x - a*3600 - b*60
print '%d:%d:%d'%(a, b, c)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
sec = int(input())
print("{}:{}:{}".format(math.floor(sec / 3600), math.floor(sec % 3600 / 60), (sec % 3600 % 60)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time=input()
h=0
m=0
s=0
while time>=3600:
	time-=3600
	h+=1
while time>=60:
	time-=60
	m+=1
while time>0:
	time-=1
	s+=1
print u"%d:%d:%d" % (h,m,s)

Submission status: Accepted

Solution code:
import sys

num = map(int,raw_input().split())

h = num[0]/3600
m = (num[0] - (3600 * h)) / 60
s = (num[0] - (3600 * h + (60 * m)))
print str(h)+":"+str(m)+":"+str(s)

Submission status: Accepted

Solution code:
# coding: UTF-8

x = raw_input()

#?§???????h:m:s

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

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

Submission status: Accepted

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

def sec2watch(S):
    """
    input S (sec)
    return "h:m:s"

    >>> sec2watch(46979)
    '13:2:59'

    >>> sec2watch(59)
    '0:0:59'
    >>> sec2watch(119)
    '0:1:59'
    >>> sec2watch(619)
    '0:10:19'

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

    return ":".join(map(str,(h,m,s)))


if __name__ == '__main__':
    S = raw_input()
    print sec2watch(S)

Submission status: Accepted

Solution code:
S = input()
h = int(S / 3600)
tmp = int(S % 3600)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = raw_input()
S = int(n)
a = S/60/60
b = S%(60*60)/60
c = (S%(60*60))%60
print  "%d:%d:%d" %(a,b,c)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
t = int(input())
a = int(t / 3600)
b = int(t % 3600 / 60)
c = int(t % 3600 % 60)
print(str(a)+':'+str(b)+':'+str(c))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8

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

Submission status: Accepted

Solution code:
s=int(input());print('%d:%d:%d'%(s/3600,s%3600/60,s%60))

Submission status: Accepted

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

Submission status: Accepted

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

print h + ":" +m+ ":" +s

Submission status: Accepted

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

Submission status: Accepted

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

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:
input = int(input())
if 0 <= input < 86400:
    hour = input / 3600
    minute = (input / 60) % 60
    second = input % 60
    print("%d:%d:%d" % (hour,minute,second))

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 = 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())
print(s//3600,s//60%60,s%60,sep=':')

Submission status: Accepted

Solution code:
#simplecalculator
x=input("")
s=x%60
x=x-s
m=(x%3600)/60
h=(x-m)/3600
print("%d:%d:%d"%(h,m,s))

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:
class Watch:
    def __init__(self, S):
        h = S / 3600 
        m = S % (60 * 60) / 60
        s = S - h * 3600 - m * 60
        print "%(h)d:%(m)d:%(s)d" % {'h':h, 'm':m, 's':s}

if __name__ == "__main__":
    S = int(raw_input())
    w = Watch(S)

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(raw_input())
a = x/3600
x = x - (a*3600)
b = x/60
x = x - (b*60)
c = x
print "%d:%d:%d" %(a,b,c)

Submission status: Accepted

Solution code:
# coding: utf-8

s = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
q = input()
ans_s = q % 60
ans_m = ((q - ans_s)/60) % 60
ans_h = ((q - ans_s)/60 - ans_m) / 60
print("%d:%d:%d" % (ans_h,ans_m,ans_s))

Submission status: Accepted

Solution code:
S = int(input())

Ss = S % 60
Sm = ((S - Ss) // 60) % 60
Sh = ((S - Ss) // 60) // 60
print('%d:%d:%d' % (Sh,Sm,Ss))

Submission status: Accepted

Solution code:

I=input()
ans=''
s=I%60
a=(I-s)/60
#a:zikanwofundearawasita
m=a%60
b=a-m
h=b/60
ans+=str(h)
ans+=':'
ans+=str(m)
ans+=':'
ans+=str(s)
print ans

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

Solution code:
def input():
    s = raw_input()
    return int(s)

def calc_min(sec):
    s = sec
    min = s / 60
    cal = min

    if min >= 59:
        houre = min / 60
        houre = int(houre) * 60
        min = min - houre

    return [min, cal]

def calc_hour(min):
    m = min
    houre = m / 60

    return int(houre)

def calc_sec(min, input_time):
    m = min
    t = input_time
    sec = t - (m * 60)
    return sec

while True:
    ss = input()

    if ss >= 0 and ss < 86400:
        break

c_min = calc_min(ss)[0]
c_houre = calc_hour(calc_min(ss)[1])
c_sec = calc_sec(calc_min(ss)[1], ss)

print(str(c_houre) + ":" + str(c_min) + ":" + str(c_sec))

Submission status: Accepted

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

h =S//3600
S = S%3600

m = S//60
S = S%60

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

Submission status: Accepted

Solution code:
import sys

S = int(sys.stdin.readline())
print("%d:%d:%d" % (S/3600, S/60%60, S%60))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
#?§??????????????????????????????????????§??????´???

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def convert(SS):
    hh = SS // 3600
    mm = (SS - hh*3600) // 60
    ss = SS - hh*3600 - mm*60
    print(str(hh) + ':' + str(mm) + ':' + str(ss))

SS = int(input())
convert(SS)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 03-Getting_Started-Watch.py

# ????¨?
# ?§???????????????? SS ???????????????????????§???hh:mm:ss ?????¢?????????????????????????????????????????????
# ????????§???hh ????????????mm ??? 60 ???????????????ss ??? 60 ??????????§???¨????????????

# Input
# SS ?????????????????????????????????
# Output
# hh???mm???ss ??? :??????????????????????????§??????????????????????????????????????°?????????????????´??????0 ????????????????????¨???????????????????????????????????????

# Constraints
# 0???S<86400
# Sample Input
# 46979
# Sample Output
# 13:2:59

# print("ss?????\??????")
x=int(input())
# print("ss=%d."%x)

# hh????¨????
hh=x/3600
hh_remain = x%3600

#mm????¨????
mm=hh_remain/60
mm_remain = hh_remain%60

#ss????¨????
ss=mm_remain

print ("%d:%d:%d"%(hh,mm,ss));

Submission status: Accepted

Solution code:
# 03-Getting_Started-Watch.py

# ????¨?
# ?§???????????????? SS ???????????????????????§???hh:mm:ss ?????¢?????????????????????????????????????????????
# ????????§???hh ????????????mm ??? 60 ???????????????ss ??? 60 ??????????§???¨????????????

# Input
# SS ?????????????????????????????????
# Output
# hh???mm???ss ??? :??????????????????????????§??????????????????????????????????????°?????????????????´??????0 ????????????????????¨???????????????????????????????????????

# Constraints
# 0???S<86400
# Sample Input
# 46979
# Sample Output
# 13:2:59

# print("ss?????\??????")
x=int(input())
# print("ss=%d."%x)

# hh????¨????
hh=int(x/3600)
hh_remain = x%3600

#mm????¨????
mm=int(hh_remain/60)
mm_remain = hh_remain%60

#ss????¨????
ss=mm_remain

print ("{0}:{1}:{2}".format(hh,mm,ss));

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
S = input()
sec = int(S)
if(sec < 86400):
    if(sec >= 0):
        h = int(sec / 3600)
        sec = sec % 3600
        m = int(sec / 60)
        s = sec % 60
        print(h,end="")
        print(":",end="")
        print(m,end="")
        print(":",end="")
        print(s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())
m, s = s/60, s%60
h, m = m/60, m%60
t = (h, m, s)
print(":".join(map(str, map(int, t))))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
	total= int(input())
	ti = divmod(divmod(total,60)[0],60)
	print("%d:%d:%d" % (ti[0],ti[1],total % 60))
if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

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

h = str(h)
m = str(m)
s = str(s)
print(":".join([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:
time = int(input())
h = str(time//3600)
m = str((time % 3600) // 60)
s  =str((time % 3600) % 60)
print(h + ":" + m + ":" + s)

Submission status: Accepted

Solution code:
S = int(input())
h = 0
m = 0
s = 0
 
while True:
    if S >= 3600:
        h += 1
        S -= 3600
    elif S >= 60:
        m += 1
        S -= 60
    else:
        break
 
print(str(h) + ":" + str(m) + ":" + str(S))

Submission status: Accepted

Solution code:
time = input()

h = time / 3600
time -= h * 3600

m = time / 60
time -= m * 60

s = time

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(raw_input())

print '{0}:{1}:{2}'.format(s/3600, s%3600/60, s%60)

Submission status: Accepted

Solution code:
S = int(input())
h = S//3600
m = (S-3600*h)//60
s = S-3600*h-60*m
print(str(h)+":"+str(m)+":"+str(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:
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
n=input()
minutes = n//60
seconds = n%60
hours = minutes // 60
minutes = minutes%60

print "%d:%d:%d"%(hours,minutes,seconds)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=input()
y=x.split(" ")
a=int(y[0])
h=a//(60*60)
s=a%60
m=((a-s)//60)%60
str=str(h)+":"+str(m)+":"+str(s)
print(str)

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s0 = int(input())
h = s0//3600
s1 = s0 - 3600 * h
m = s1//60
s2 = s1 - 60 * m
print( '{0}:{1}:{2}'.format(h,m,s2) )

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:
x = input()
h = x/60/60
m = x/60%60
s = x%60%60
print str(h) + ':' + str(m) + ':' + str(s)

Submission status: Accepted

Solution code:
sec = int(raw_input())
H = 3600
M = 60

h = sec / H
sec = sec % H
m = sec / M
s = sec % M

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

sec  = int(input())

hun  = int(sec/60)
hour = int(hun/60)

hun -= hour * 60
sec %= 60

print(hour,end=":")
print(hun,end=":")
print(sec)

Submission status: Accepted

Solution code:
S=int(input())

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

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

Submission status: Accepted

Solution code:
S = int(input())

h,t = divmod(S,3600)
m,t = divmod(t,60)
s = t

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

Submission status: Accepted

Solution code:
#coding: utf-8
import math

time=int(input())

h=math.floor(time/3600)
time=time%3600

m=math.floor(time/60)
s=time%60

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = input()
h = i / 3600
h2 = i % 3600
m = h2 / 60
s = h2 % 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("{0}:{1}:{2}".format(h,m,s))

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())

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

Submission status: Accepted

Solution code:
S = int(input()) 
print(S // 3600, ":", S % 3600 // 60, ":", S % 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 = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s , sep ="")
#print("{a}:{b}:{c}".format(h,m,s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
hour = a // 3600
min = (a - 3600 * hour) // 60
sec = a - 3600* hour - 60 * min
print("{0}:{1}:{2}".format(hour, min, sec))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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