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

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

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

Submission status: Accepted

Solution code:
S=int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


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

Submission status: Accepted

Solution code:
t = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

def watch(s):
    hh = s // (60 * 60) # ??????????????????
    mm_s = s % (60 * 60) # s??????hh??§??¨??????????§???°???????????????(??????:?§?)
    mm = mm_s // 60 # ???????????????
    ss = mm_s % 60 # mm_s??????mm??§??¨??????????§???°???????????????(??????????§?)

    print(str(hh) + ":" + str(mm) + ":" + str(ss))

s = int(input())
watch(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:
s = int(input())
h = s // 3600
m = (s - h * 3600) // 60
s = (s - h * 3600) % 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(str(h)+":"+str(m)+":"+str(s))

Submission status: Accepted

Solution code:
t, s = divmod(int(input()), 60)
h, m = divmod(t, 60)
print(str(h) + ':' + str(m) + ':' + str(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

def func():
    try:
        time=int(input().rstrip())
        if(time<0):
            print("input error")
    except:
        print("input error 1")
        return -1
    
    hours = time // 3600
    minutes = (time % 3600) // 60
    seconds = time % 60
    
    print(str(hours)+":"+str(minutes)+":"+str(seconds))

func()

Submission status: Accepted

Solution code:
#coding:UTF-8
s = int(input())
hour = s//3600
remain = s%3600
minute = remain//60
second = remain%60
print (str(hour)+":"+str(minute)+":"+str(second))

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:


def hms(num):
    h = int(num / (60 ** 2))
    m = int((num - h * 3600) / 60)
    s = int((num - (h * 3600) - m * 60))
    print(str(h) + ":" + str(m) + ":" + str(s))


if __name__ == '__main__':
    n = int(input())
    hms(n)

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:
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(h,m,s,sep = ':')

Submission status: Accepted

Solution code:

S = input()

h = S // 3600
m = (S/60) % 60
s = S % 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-h*3600-m*60)

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

Submission status: Accepted

Solution code:
def main(arg):
    arg = int(arg)
    h,m,s=0,0,0
    while arg >= 3600:
        arg -= 3600
        h += 1
    while arg >= 60:
        arg -= 60
        m += 1
    s = arg
    result = "{}:{}:{}".format(h,m,s)
    return result


if __name__ == '__main__':
    print(main(input()))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding : utf-8
'''
?§??????????
'''
a = input()
ho = int(int(a)/3600)
mi = int((int(a)-ho*3600)/60)
se = int((int(a)-ho*3600-mi*60))

print(str(ho)+":"+str(mi)+":"+str(se))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

s = n % 60;

n = int(n/60);
m = n % 60;

h = int(n/60);

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

Submission status: Accepted

Solution code:
#coding:utf-8

time = int(input().rstrip())

s = time % 60
m = time // 60

h = m //60
m = m % 60

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sec = input()
h, s = divmod(int(sec), 3600)
m, s = divmod(s, 60)
print(':'.join([str(h), str(m), str(s)]))
pass

Submission status: Accepted

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

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())
s = S % 60
S = S - s
M = S / 60
m = int(M % 60)
M = M - m
H = int(M / 60)
print(str(H) + ":" + str(m) + ":" + str(s))

Submission status: Accepted

Solution code:
import sys

t = int(sys.stdin.readline().rstrip())
h = int(t/3600)
m = int((t - (h * 3600)) / 60)
s = t - (h * 3600) - (m * 60)
print("{}:{}:{}".format(h,m,s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
seconds = int(input())
hours = seconds // 3600
seconds %= 3600
minutes = seconds // 60
seconds %= 60

print('{}:{}:{}'.format(hours, minutes, seconds))

Submission status: Accepted

Solution code:
time = int(input())

if time / 3600 > 0:
    hour = int(time/3600)
else:
    hour = 0
if (time - hour * 3600) / 60 > 0:
    minute = int((time - hour * 3600)/60)
else:
    minute = 0
if time - (hour*3600 + minute*60) > 0:
    second = int(time - (hour*3600 + minute*60))
else:
    second = 0
    
print(str(hour) + ":" + str(minute) + ":" + str(second))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list = [0] * 3
a = int(input())
list[0] = a/3600
a_p = a%3600
list[1] = a_p/60
list[2] = a_p%60
print ":".join(map(str,list))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
tm = int(input().strip())
h = int(tm / 3600)
m = int((tm % 3600) / 60)
s = tm % 60
print("{0}:{1}:{2}".format(h, m, s))

Submission status: Accepted

Solution code:
#!/usr/bin/python

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

Submission status: Accepted

Solution code:
time = int(input())
hour = min = sec = 0

while time >= 3600:
    time -= 3600
    hour += 1

while time >= 60:
    time -= 60
    min += 1

sec = time

print(hour,end=':')
print(min,end=':')
print(sec)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

a = S//3600 #h
b = (S%3600)//60 #m
c = (S%3600)%60 # s

print('{0}:{1}:{2}'.format(a,b,c))

Submission status: Accepted

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

Submission status: Accepted

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

print('{}:{}:{}'.format(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("{}:{}:{}".format(h,m,s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
t = int(input())

h = t // 3600
t -= h * 3600

m = t // 60
t -= m * 60

s = t

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

Submission status: Accepted

Solution code:
input_data = int(input())
hour=int(input_data/3600)
input_data=int(input_data%3600)
min = int(input_data/60)
input_data=int(input_data%60)

answer = str(hour)+":"+str(min)+":"+str(input_data)
print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time = int(input())

h = 0
m = 0
s = 0

hour = 3600
minute = 60

while hour <= time:
    h += 1
    time -= hour
while minute <= time:
     m += 1
     time -= minute
s = time
print('{}:{}:{}'.format(h, m, s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S_input = input()
S_ans = S_input % 60
M = int(S_input / 60)
M_ans = M % 60
H_ans = int(M / 60)
print "%d:%d:%d"%(H_ans, M_ans, S_ans)

Submission status: Accepted

Solution code:
#! python3

HOUR = 3600
MIN = 60

x = int(input())
H = x // HOUR
x = x % HOUR
M = x // MIN
x = x % MIN
S = x
print('%d:%d:%d' %(H, M, S))

Submission status: Accepted

Solution code:
import sys

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sec = int(input())

h = int(sec / 3600)
sec %= 3600

m = int(sec / 60)
sec %= 60

s = sec

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
t = int(input())

h = t // 3600
t = t % 3600

m = t // 60
t = t % 60

s = t

print('{0}:{1}:{2}'.format(h,m,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:
time = int(input())
h = int(time/3600)
m = int((time%3600)/60)
s = int(time%60)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())
h = 0 if x==0 else int(x/ (60*60))
zan = x - h * 60 * 60
m=0 if zan==0 else int(zan/ 60)
s = zan -m * 60
print(repr(h)+':'+ repr(m) + ':' +repr(s))

Submission status: Accepted

Solution code:
i = int(input())
print("{}:{}:{}".format(int(i/(60*60)), int((i%(60*60))/(60)), i%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("{}:{}:{}".format( S//3600, S//60%60, S%60 ))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(raw_input())

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

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

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(input())
a = s//(60*60)
b = (s-(a*60*60))//60
c = s-(a*60*60)-(b*60)
print("{h}:{m}:{s}".format(h=a, m=b, s=c))

Submission status: Accepted

Solution code:
import math

s=int(input())
h=math.floor(s/3600)
s=math.floor(s%3600)
m=math.floor(s/60)
s=math.floor(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:
h,x = divmod(input(), 3600)
m,s = divmod(x, 60)
print('{}:{}:{}'.format(h,m,s))

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

Solution code:
S = int(input())

def clock(S):
	s = int(S % 60)
	m = int((S / 60) % 60)
	h = int((S / 60) / 60)
	return ('{}:{}:{}'.format(h, m, s))

print(clock(S))

Submission status: Accepted

Solution code:
s = int(raw_input())
result = [s / 3600]
s %= 3600
result.append(s / 60)
result.append(s % 60)
print(":".join(str(i) for i in result))

Submission status: Accepted

Solution code:
sec = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())

if s >= 3600: 
    h = s//3600
    m = s%3600
    s = m%60
    m = m//60
elif s >= 60:
    h = 0
    m = s//60
    s = s%60
else:
    h = 0
    m = 0

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

Submission status: Accepted

Solution code:
nun = int(input())
hour = int(nun/60/60)
minit = int(nun/60%60)
sec = nun%60
print(str(hour) + ":" + str(minit) + ":" + str(sec))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=int(input())
h=s//3600
ss=(s-3600*h)//60
se=(s-3600*h-ss*60)
print("{}:{}:{}".format(h,ss,se))

Submission status: Accepted

Solution code:
S = int(raw_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:
# Aizu Problem ITP_1_1_D: Watch
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")

sec = int(input())
hour = sec // 3600
sec = sec % 3600
minute = sec // 60
sec %= 60
print("%d:%d:%d" % (hour, minute, sec))

Submission status: Accepted

Solution code:
import math
s = int(input())
remain = 0

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

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


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

Submission status: Accepted

Solution code:
a = int( input() )

hour = int(a / 3600)
minute = int ((a-hour*3600)/60)
sec = int((a-hour*3600-minute*60))



print(hour,minute,sec,sep=":")

Submission status: Accepted

Solution code:
in_sec = int(input())

sec = in_sec % 60
min = (in_sec // 60) % 60
hour = (in_sec // 3600 )

print("{}:{}:{}".format(hour,min,sec))

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:
seconds=int(input())
hour, amari = divmod(seconds,3600)
minute, second = divmod(amari,60)

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

Submission status: Accepted

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

x = int(input())

h = x//3600
hh = x % 3600

m = hh//60

mm = hh % 60


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s0 = int(input(""))
h = s0 / 3600
m = s0 % 3600 / 60
s1 = s0 % 3600 % 60

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

Submission status: Accepted

Solution code:
S = int(raw_input())

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

Submission status: Accepted

Solution code:
time = int(input())

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

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

Submission status: Accepted

Solution code:
total = int(input())

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

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

Submission status: Accepted

Solution code:

i = input()
t = int(i)

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

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

Submission status: Accepted

Solution code:
x = int(input())

#1hour = 3600sec
h = x // 3600
m = x % 3600 // 60
s = x % 3600 % 60

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

Submission status: Accepted

Solution code:
s = int(input())
a = s / 3600
b = (s - a*3600) / 60
c = s - a*3600 - b*60
print str(a) + ":" + str(b) + ":" + str(c)

Submission status: Accepted

Solution code:
s = int(input())
a = s /3600
b = (s-a*3600)/60
c = s - 3600*a -60*b
print str(a) + ":" + str(b) + ":" + str(c)

Submission status: Accepted

Solution code:
S=int(input())
a=S/3600
b=(S-3600*a)/60
c=S-3600*a-60*b
print str(a)+':'+str(b)+':'+str(c)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
all_time = int(input())

hour = all_time // 3600

minute = (all_time % 3600) // 60

second = (all_time % 3600) % 60

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())
h, r = divmod(x, 60*60)
m, s = divmod(r, 60)
print(h, m, s, sep=':')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
h,m,s=0,0,int(input())
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:
from datetime import timedelta
print(':'.join(list(map(str,map(int,str(timedelta(seconds=int(input()))).split(':'))))))

Submission status: Accepted

Solution code:
a=input()
s=int(a)
if s<86400 and s>=0:

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

else:
    exit()

Submission status: Accepted

Solution code:
user1=int(input())
h=int(user1/3600)
user2=int(user1%3600)
m=int(user2/60)
s=int(user2%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(h,m,s,sep=":")

Submission status: Accepted

Solution code:
s = int(input())
sec = s%60
mn = int(((s - sec)%3600)/60)
hr = int((s -sec - mn*60)/3600)

#ls = ":".join(ll)
print(str(hr)+":"+str(mn)+":"+str(sec))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

h = s0 / 3600
m = s0 % 3600 / 60
s1 = s0 % 3600 % 60
 
print(str(int(h)) + ":" + str(int(m)) + ":" + str(int(s1)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
time = int(input())
print (time//3600, time%3600//60, time%3600%60, sep = ":")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# (c) midandfeed
s = int(input())

print("{}:{}:{}".format(s//3600, (s%3600)//60, s%60))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

h = str(S//3600)
M = S%3600

m = str(M//60)

s = str(M%60)
print(h+":"+m+":"+s)

Submission status: Accepted

Solution code:
def conv(sec):
    h = sec // (60 * 60)
    m = (sec - h * (60 * 60)) // 60
    s = sec - m * 60 - h * (60 * 60) 
    return ":".join([str(h), str(m), str(s)])

# inp = list(map(int, input().split()))
print(conv(int(input())))

Submission status: Accepted

Solution code:
x = int(input())

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

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

Submission status: Accepted

Solution code:
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=s//3600
m=(s-h*3600)//60
se=s-h*3600-m*60

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

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:
ss = int(input())
h = ss // 3600
m = (ss % 3600) // 60
s = (ss % 3600) % 60
print('%i:%i:%i' % (h, m, s))

Submission status: Accepted

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

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