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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
raw = int(input())

seconds = raw
minutes = 0
hours = 0

if seconds >= 60:
    minutes = raw // 60
    seconds = raw % 60

    if minutes >= 60:
        hours = minutes // 60
        minutes = minutes % 60

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

h,m,s = str(h),str(m),str(s)

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

Submission status: Accepted

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

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(str(h)+":"+str(m)+":"+str(s))

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

Solution code:
## Watch ##
S=int(input())
h=S//3600
tempS1=S%3600
m=tempS1//60
s1=tempS1%60
print(h,m,s1,sep=':')

Submission status: Accepted

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

print(f'{h}:{m}:{s}')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time = int(input())

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

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

Submission status: Accepted

Solution code:
import math

S = int(input())
if S>= 3600:
    h = math.floor(S/3600)
    m = math.floor((S%3600)/60)
    s = math.floor((S%3600)%60)
elif S < 3600 and S >= 60:
    h = 0
    m = math.floor(S/60)
    s = math.floor(S%60)
else:
    h = 0
    m = 0
    s = S
a= str(h)+":"+str(m)+":"+str(s)
print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
hours=n//3600
n%=3600
mins=n//60
n%=60
secs=n
print(str(hours)+':'+str(mins)+':'+str(secs))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
T=int(input())

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time =int(input(""))
hours = time//3600
minutes = time%3600//60
second = time%60
print(f"{hours}:{minutes}:{second}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def mod(a, b):
    q = a // b
    mob = a % b
    return (q, mob)


h, t2 = mod(int(input()), 60 * 60)
m, s = mod(t2, 60)
print(str(h) + ':' + str(m) + ':'+str(s))

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:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())
a = s//60
b = a//60
c = s%60
d = a%60
print(f"{b}:{d}:{c}")

Submission status: Accepted

Solution code:
def watch(ss):
    s = ss
    m = s // 60
    s = s % 60
    h = m // 60
    m = m % 60
    return (h,m,s)

ss = int(input())
(h,m,s) = watch(ss)
print(str(h)+':'+str(m)+':'+str(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = int(input())

hour = l//3600
minute = l%3600//60
seconds = l%3600%60

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
    
t = input()

h = t / 3600
t -= h * 3600

m = t / 60
t -= m * 60

s = t

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = int(input())

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

print(f"{h}:{m}:{s}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def toStr(i):
    if i < 10:
        return "0" + str(i)
    else:
        return str(i)

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

print(f"{h}:{m}:{s}")

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
m = int(s)//60
h = m//60
s = int(s)%60
m = 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(f'{H}:{M}:{S}')

Submission status: Accepted

Solution code:
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%60

print(f"{h}:{m}:{s}")

Submission status: Accepted

Solution code:
n = int(input())
import math
minutes = math.floor(n / 60)
seconds = str(n % 60)
hours = math.floor(minutes / 60)
minutes =str(minutes - hours * 60)
hours = str(hours)
print(hours + ":" + minutes + ":" + seconds)

Submission status: Accepted

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

hour = n//3600
n -= hour*3600
minute = n//60
n -= minute*60
print(str(hour)+":"+str(minute)+":"+str(n))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=int(input())

h=s//3600
s%=3600

m=s//60
s%=60

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

Submission status: Accepted

Solution code:
time = int(input())

h = int(time / 3600)
m = int((time - 3600*h) / 60)
s = int(((time - 3600*h) - 60*m) % 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(f"{h}:{m}:{s}")

Submission status: Accepted

Solution code:
second = int(input())

h = second // 3600
m = (second -3600*h) // 60
s = second - h*3600 - m*60
answer = str(h)+":"+str(m)+":"+str(s)

print(answer)

Submission status: Accepted

Solution code:
sec = int(input())

print('{}:{}:{}'.format(sec//3600, (sec%3600)//60, sec%60))

Submission status: Accepted

Solution code:
#coding: UTF-8

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
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:
s = int(input())
h = s // 3600
m = s % 3600 // 60
s = s % 60
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(f"{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(f"{h}:{m}:{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 = 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:
sec = int(input())
h, m = divmod(sec, 3600)
m, s = divmod(m, 60)
print(f"{h}:{m}:{s}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
s = (int(a) % 60)
m1 = ((int(a) - s) / 60)
m2 = (int(m1) % 60)
m = m2
h1 = ((m1 - m) / 60)
h = int(h1)
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 % 60))
print(h, m, s, sep = ':')

Submission status: Accepted

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

Submission status: Accepted

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

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

h = s // 3600

m = s % 3600 // 60

s = s % 60

print(f"{h}:{m}:{s}")

Submission status: Accepted

Solution code:
s=int(input())
a=s//3600
b=s%3600//60
c=s%60
print(f"{a}:{b}:{c}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())
a = S // 3600
b = (S % 3600) // 60
c = S % 60
print(f"{a}:{b}:{c}")

Submission status: Accepted

Solution code:
a=int(input())
hours=a//3600
minites=a%3600//60
times=a-hours*3600-minites*60
print(hours, end=":");print(minites, end=":");print(times)

Submission status: Accepted

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

Submission status: Accepted

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

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

print(f'{h}:{m}:{s}')

Submission status: Accepted

Solution code:
S=int(input())

if S<60:
  print("0:0:"+str(S))
elif S>=60 and S<3600:
  m=int(S/60)
  s=int(S%60)
  print("0:"+str(m)+":"+str(s))
elif S>=3600:
 h=int(S/3600)
 S=int(S-h*3600)
 m=int(S/60)
 s=int(S%60)
 print(str(h)+":"+str(m)+":"+str(s))

Submission status: Accepted

Solution code:
S =  int(input())
   
hh = 0
mm = 0
ss = 0
   
while S >= 3600:
     S -= 3600
     hh += 1
       
while S >= 60:
     S -= 60
     mm += 1
        
       
ss = S
print(hh,mm,ss, sep=':')

Submission status: Accepted

Solution code:
S =  int(input())
  
hh = 0
mm = 0
ss = 0
  
while S >= 3600:
     S -= 3600
     hh += 1
      
while S >= 60:
     S -= 60
     mm += 1
       
      
ss = S
print(hh,mm,ss, sep=':')

Submission status: Accepted

Solution code:
S =  int(input())
 
hh = 0
mm = 0
ss = 0
 
while S >= 3600:
     S -= 3600
     hh += 1
     
while S >= 60:
     S -= 60
     mm += 1
      
     
ss = S
print(hh,mm,ss, sep=':')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = eval(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
total_s = int(input())

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

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

Submission status: Accepted

Solution code:
S = int(input())

h = S // 3600

m = S % 3600 // 60

s = S % 60

print(f"{h}:{m}:{s}")

Submission status: Accepted

Solution code:
s = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())
h=0
m=0
s=0

for i in range(S//3600):
    h=h+1
S=S-h*3600
for i in range(S//60):
    m=m+1
S=S-m*60
for i in range(S):
    s=s+1
    
print(h,m,s,sep = ':')

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

b = a // 3600
a = a % 3600
c = a // 60
d = a % 60
print(b, ":", c, ":", d, sep='')

Submission status: Accepted

Solution code:
s = int(input())

m = s // 60
s %= 60

h = m // 60
m %= 60

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3.5
S = int(input())
if S < 60:
    print("0:0:",S,sep='')
elif S < 3600:
    print("0:",int(S/60),":",S%60,sep='')
else:
    print(int(S/3600),":",int((S%3600)/60),":",(S%60)%60,sep='')

Submission status: Accepted

Solution code:
n = int(input())

print(int(n/3600), end="")
print(":",end="")
print( int(n/60)%60,end="")
print(":", end="")
print(n%60)

Submission status: Accepted

Solution code:
a = int(input())
hour = a // 3600
amari1 = a - hour * 3600
minute = amari1 // 60
second = amari1 % 60
print('{}:{}:{}'.format(hour,minute,second))

Submission status: Accepted

Solution code:
import math

S = int(input())

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

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

Submission status: Accepted

Solution code:
x = int(input())

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

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

Submission status: Accepted

Solution code:
S = int(input())
# 秒→時間 : // 3600
h = S // 3600

# 分 : S を3600　で割ったあまり秒 を分にする
m = S % 3600 // 60

# 秒
s = S % 60

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sec1 =int(input())
hour, min1 = divmod(sec1,3600)
min2, sec2=divmod(min1,60)
print(hour,min2,sec2,sep=":")

Submission status: Accepted

Solution code:
S = int(input())
if 0 <= S and S <= 86400 :
    h = (S - (S % 3600)) // 3600
    m = (((S % 3600) - ((S % 3600) % 60)) // 60)
    s = ((S % 3600) % 60)
    print(str(h) + ":" + str(m) + ":" + str(s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t = int(input())

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

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

Submission status: Accepted

Solution code:
t = int(input())

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

Submission status: Accepted

Solution code:
def test():

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

if __name__ == "__main__":
	test()

Submission status: Accepted

Solution code:
# coding: utf-8

s = int(input())
hh = s // 3600
xx = s % 3600
mm = xx // 60
ss = xx % 60
print('{0}:{1}:{2}'.format(hh, mm, ss))

Submission status: Accepted

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

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 % 3600 % 60, sep = ":")

Submission status: Accepted

Solution code:
S = int(input())

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

print(':'.join([str(hoge) for hoge in [h, m, s]]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input() )

h = S // 3600

time = S % 3600

m = time // 60

s = time % 60

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ss = int(input())
hour = ss // 60**2
second = ss % 60**2
minute = second // 60
second = second % 60
print('{}:{}:{}'.format(hour, minute, second))

Submission status: Accepted

Solution code:
S = int (input())
hh = S //3600
S -= hh *3600

mm = S // 60
ss = S - mm * 60
print(hh,mm,ss, sep=':')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())

ss = s % 60
mm = s // 60
hh = mm // 60
mm = mm % 60

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

Submission status: Accepted

Solution code:
time = float(input())
time = time % (24 * 3600)
hour = time // 3600
time %= 3600
minutes = time // 60
time %= 60
seconds = time
print("%d:%d:%d" % (hour, minutes, seconds))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())
hour = int(S/60/60)
minute = int(S/60)%60
second = S%60
print(str(hour)+':'+str(minute)+':'+str(second))

Submission status: Accepted

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

d = b % 60
e = b // 60
print("{0:01}:{1:01}:{2:01}".format(c,e,d))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
x = int(sys.stdin.readline())
seconds = x % 60
minutes = math.floor(x / 60) % 60
hour = math.floor(math.floor(x / 60) / 60)
print(hour, ':', minutes, ':', seconds, sep='')

Submission status: Accepted

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

hour = int(second/3600)
min = int(second/60)-hour*60
second = second - hour*3600 - min*60
print(hour,":",min,":",second,sep='')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(f"{h}:{m}:{s}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x = int(input())
hour = x // 3600
minute = (x - hour * 3600) // 60
second = x % 60
print(str(hour) + ":" + str(minute) + ":" + str(second))

Submission status: Accepted

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

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(str(h)+':'+str(m)+':'+str(s))

Submission status: Accepted

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

Submission status: Accepted

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

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:
time = int(input())
a = time // 3600
b = time % 3600 // 60
c = time % 3600 % 60
print(f"{a}:{b}:{c}")

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

print(f"{h}:{m}:{s}")

Submission status: Accepted

Solution code:
S = int(input())
H=S//3600
S-=H*3600
M = S//60
S-=M*60
print("{}:{}:{}".format(H,M,S))

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

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

if number>=3600:
    if number>=3660:
        h=number//3600
        m=(number-h*3600)//60
        s=(number-h*3600)-m*60
    else:
        h=number//3600
        m=0
        s=(number-h*3600)
        pass
else:
    if number>=60:
        h=0
        m=number//60
        s=number-m*60
    else:
        h=0
        m=0
        s=number
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("{0}:{1}:{2}".format(h,m,s))

Submission status: Accepted

Solution code:
s = int(input())
h, reminder = divmod(s,3600)
m, s = divmod(reminder,60)     
print(str(h) + ":" + str(m) +":" + str(s))

Submission status: Accepted

Solution code:
n=int(input())
h = n // 3600
rem_m = n % 3600
m = rem_m // 60
s = rem_m % 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(f"{h}:{m}:{s}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())
byou = n % 60
hun = n % 3600 // 60
jikan = n // 3600

print(str(jikan) + ":" +  str(hun) + ":" + str(byou))

Submission status: Accepted

Solution code:
sec = int(input())

print('%d:%d:%d' %(sec/3600 , sec/60%60 , sec%60))

Submission status: Accepted

Solution code:
x = int(input())

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

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

Submission status: Accepted

Solution code:
T = int(input())

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

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

s = T

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8

s = int(input())

h = s // 3600
s = s - 3600 * h

m = s // 60
s = s - 60 * m

print(f'{h}:{m}:{s}')

Submission status: Accepted

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

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

Submission status: Accepted

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