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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(raw_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:
S = int(raw_input())
h = S/60/60
m = S/60 - h*60
s = S % 60
print '{}:{}:{}'.format(h, m,s)

Submission status: Accepted

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

Submission status: Accepted

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

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:
# coding: utf-8
data = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Accepted

Solution code:
# coding: utf-8!
# 1???????????????
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))

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:
x = int(input().strip())
h = x / 3600
m = (x%3600)/60
s = (x%3600)%60
print("%d:%d:%d"%(h,m,s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time_S = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time = int(input())

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

Submission status: Accepted

Solution code:
# -*- coding utf-8 -*-
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)

Submission status: Accepted

Solution code:
n = int(input())

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

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

Submission status: Accepted

Solution code:
S = int(input())

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

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

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("%d:%d:%d"%(h,m,s))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
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:])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ??\??????????????????
time = int(input())

# ?????????????¨??????????
H = time // 3600

# ?????????????¨????
m = time % 3600
M = m // 60

S = m % 60

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

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("%s:%s:%s" % (h, m, s))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
num = int(input())
h = int(num/3600)
m = int((num-3600*h)/60)
s = num-(3600*h+60*m)
print('{}:{}:{}'.format(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:
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:
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))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sec_time = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
sec = input()
print "{}:{}:{}".format(sec/3600, sec%3600/60, sec%3600%60)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8
sec = input()
h = sec / 3600
sec = sec % 3600
m = sec / 60
sec = sec % 60
s = sec
print "%d:%d:%d" % (h,m,s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
instr = input()
# instr = "46979"

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: UTF-8

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
sho, s = divmod(int(input()), 60)
h, m = divmod(sho, 60)
print("{}:{}:{}".format(h, m, s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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)

Submission status: Accepted

Solution code:
#Getting Started - Watch

S=int(input())
h= S // 3600 
m= S // 60%60 #S // 60 -> Sをm (m>60も含む), S//60%60 -> (m>60)のとき、h分を消す
s= S % 60
print(h,m,s,sep=":")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
i = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: utf-8

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

Submission status: Accepted

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

import sys

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env 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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())


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

Submission status: Accepted

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

Submission status: Accepted

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

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:
a = int(input())
b = str(a // 3600)
c = a % 3600
d = str(c // 60)
e = str(c % 60)
print(b + ':' + d + ':' + e)

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:
temp = int(input())


hour = temp//3600

min = (temp%3600)//60

sec = (temp%3600)%60

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

print(answer)

Submission status: Accepted

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

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

Submission status: Accepted

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

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 python
# coding: utf-8
#


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

Submission status: Accepted

Solution code:
#coding: UTF-8

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
### 標準入力(秒) を 時刻:分:秒に変換する。
###
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))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
line = int(input())

h = int(line / 3600)

m = int(line % 3600 / 60)

s = int(line % 3600 % 60)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:


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

"""

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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