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 // 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().rstrip())
a = str(s//60//60)+":"+str(s//60%60)+":"+str(s%60)
print(a)

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())

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

Submission status: Accepted

Solution code:
input_s = int(input())

q, s = divmod(input_s, 60)
h, m = divmod(q, 60)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time = int(input())

times = time//60
second = time % 60
hour = times//60
minute = times % 60

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

Submission status: Accepted

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

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:
total_sec = int(input())
total_min = total_sec // 60

hour = str(total_min // 60)
min = str(total_min % 60)
sec = str(total_sec % 60)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())
hour = int(s / (60**2))
next_s = int(s % (60**2))
minut = int(next_s / 60)
second = int(next_s % 60)
print("{}:{}:{}".format(hour,minut,second))

Submission status: Accepted

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

Submission status: Accepted

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

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*h-60*m

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

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
inp = int(input())
h = inp // 3600
m = inp % 3600 // 60
s = inp % 60
print(f"{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:
# -*- coding: utf-8 -*-   
S = int(input())
h = S // 3600
h_ = S % 3600
m = h_ // 60
m_ = h_ % 60
s = m_
print(str(h)+":"+str(m)+":"+str(s))

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

Solution code:
import sys

def main():
  input = sys.stdin.readline().rstrip

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


if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
N = int(input())

s = N%60
N = int((N-s)/60)

m = N%60
N = int((N-m)/60)

h = N

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

ipt = int(input())
s = ipt % 60
tmp = ipt // 60
m = tmp % 60
tmp2 = tmp // 60
h = tmp2 % 60
print(h, m, s, sep=":")

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:
i = int(input())
h, r = divmod(i, 3600)
m, s = divmod(r, 60)
print(h, m, s, sep=':')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
seconds = int(input())

hour = seconds // 3600
minute = (seconds - 3600*hour) // 60
second = seconds - 3600*hour - 60*minute

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

Submission status: Accepted

Solution code:
s = int(input())

second = s % 60
s = s // 60
min = s % 60
hour = s // 60

print(f'{hour}:{min}:{second}')

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
a=int(input())

h=a//3600
a1=a%3600
a2=a1%60
m=a1//60
s=a2
print(f"{h}:{m}:{s}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())

h = s//3600

s %= 3600
m = s//60

s %= 60

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

Submission status: Accepted

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

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

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

if __name__ == '__main__':
    test()

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

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

Submission status: Accepted

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

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//60
S=S%60

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

Submission status: Accepted

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

h = inp // 3600
m = (inp % 3600) // 60
s = inp % 60
#print(h, m , s)
print(str(h)+':'+str(m)+':'+str(s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())

h = s / 3600
s %= 3600

m = s / 60
s %= 60

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

Submission status: Accepted

Solution code:
sec=int(input())

hh=0
mm=0
ss=0

while sec >= 3600:
    hh += 1
    sec -= 3600
    
while sec >= 60:
    mm += 1
    sec -= 60
    
ss = sec

print(hh, ':', mm, ':', ss, sep= '')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sec=int(input())

hh=0
mm=0
ss=0

while sec>=3600:
    hh+=1
    sec-=3600
    
while sec>=60:
    mm+=1
    sec-=60

ss=sec

print(hh,':',mm,':',ss,sep='')

Submission status: Accepted

Solution code:
sec = int(input())

hh=0
mm=0
ss=0

while sec >= 3600:
     hh +=1
     sec -=3600

while sec >= 60:
    mm += 1
    sec -= 60
ss = sec
print(hh,':',mm,':',ss,sep='')

Submission status: Accepted

Solution code:
sec = int(input())

hh = 0 
mm = 0
ss = 0
while sec >= 3600:
     hh += 1
     sec -= 3600
     
while sec >= 60:
    mm += 1
    sec -= 60
    
ss = sec 

print(hh, ':', mm, ':' , ss, sep= '')

Submission status: Accepted

Solution code:
sec = int(input())

hh = 0
mm = 0
ss = 0

while sec >=3600:
    hh += 1
    sec -= 3600
    
while sec >= 60:
    mm += 1
    sec -= 60
    
ss = sec

print (hh, ':', mm, ':', ss, sep= '')

Submission status: Accepted

Solution code:
sec=int(input())

hh=0
mm=0
ss=0

while sec >= 3600:
    hh +=1
    sec -= 3600
    
while sec >= 60:
    mm += 1
    sec -=60
    
ss = sec

print(hh, ':', mm, ':', ss, sep='')

Submission status: Accepted

Solution code:
sec = int(input())

hh = 0
mm = 0
ss = 0

while sec >= 3600:
    hh += 1
    sec -= 3600
    
while sec >= 60:
    mm += 1
    sec -= 60
    
ss = sec 

print(hh, ':', mm, ':', ss, sep= '')

Submission status: Accepted

Solution code:
sec = int(input())

hh = 0
mm = 0
ss = 0

while sec >= 3600:
    hh += 1
    sec-= 3600
    
while sec >= 60:
    mm += 1
    sec -= 60
    
ss = sec

print(hh,':', mm,':',ss, sep= '')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sec = int(input())

hh = 0
mm = 0
ss = 0 

while sec >= 3600:
    hh += 1
    sec -=3600
while sec >=60:
    mm += 1
    sec -=60

ss = sec 
print(hh, ':', mm, ':', ss, sep='')

Submission status: Accepted

Solution code:
sec=int(input())

hh=0
mm=0
ss=0

while sec>=3600:
    hh+=1
    sec-=3600
    
while sec>=60:
    mm+=1
    sec-=60
    
ss=sec
print(hh,':',mm,':',ss,sep='')

Submission status: Accepted

Solution code:
sec=int(input())
hh=0
mm=0
ss=0

while sec>=3600:
    hh+=1
    sec-=3600
while sec>=60:
    mm+=1
    sec-=60
ss=sec
print(hh,':',mm,':',ss,sep='')

Submission status: Accepted

Solution code:
sec = int(input())

hh = 0
mm = 0
ss = 0

while sec >= 3600:
    hh += 1
    sec -= 3600
    
while sec >= 60:
    mm += 1
    sec -= 60
    
ss = sec

print(hh, ':', mm, ':', ss, sep= '')

Submission status: Accepted

Solution code:
sec = int(input())

hh = 0
mm = 0
ss = 0

while sec >= 3600:
    hh += 1
    sec -= 3600
    
while sec >= 60:
    mm += 1
    sec -= 60
    
ss = sec

print(hh,':', mm,':', ss, sep= '')

Submission status: Accepted

Solution code:
sec = int(input())

hh = 0
mm = 0
ss = 0
while sec >=3600:
    hh += 1
    sec -= 3600
while sec >= 60:
    mm += 1
    sec -= 60
    
ss = sec

print(hh, ':' , mm, ':' , ss, sep= '')

Submission status: Accepted

Solution code:
sec  = int(input())

hh = 0
mm = 0
ss = 0
 
while sec >= 3600:
    hh += 1
    sec -= 3600
    
while sec >= 60:
    mm += 1
    sec -= 60
    
ss = sec

print(hh, ':',mm, ':', ss, sep='')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def hour(s):
    return s // 3600

def minute(s):
    return s // 60


s = input("")
s = int(s)
h = hour(s)
m = minute(s - h * 3600)
s = s - (h * 3600 + m * 60)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=int(input())

hour = S//(60*60)
min = (S%(60*60))//60
seco = (S%(60*60))%60
print(str(hour)+':'+str(min)+':'+str(seco))

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())
h = S //3600
m = (S - 3600*h)//60
s = S - 3600*h -60*m
h=str(h)
m=str(m)
s=str(s)
print(h+":"+m+":"+s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
s= int(input())
h=math.floor(s/3600)
m=math.floor((s-(h*3600))/60)
sec= s-((h*3600)+(m*60))
print(f"{h}:{m}:{sec}")

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

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 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≤S≤86400
# Sample Input 1
#	46979
# Sample Output 1
#	13:2:59

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time_sec = int(input())
time_hour, time_sec = divmod(time_sec, 3600)
time_min, time_sec = divmod(time_sec, 60)
print(str(time_hour) + ':' + str(time_min) + ':' + str(time_sec))

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

print(str(x//3600)+":"+str((x-x//3600*3600)//60) + ":" + str(x-x//3600*3600- (x-x//3600*3600)//60*60))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

n = int(input())
sec = (n % 60) % 60
min = math.floor(n / 60)% 60
hour = math.floor(n / 3600)
print(str(hour) + ":"+ str(min) + ":" + str(sec))

Submission status: Accepted

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

if S >= 3600:
    h = int(S / 3600)
    S = S - (h * 3600)
    
if S >= 60:
    m = int(S / 60)
    S = S - (m * 60)
    
s = S

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

S = int(input())

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

print(f'{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:
def watch(s:int) -> int:
    hour = s // 3600
    x = s % 3600
    minute = x // 60
    second = x % 60
    return "{}:{}:{}".format(hour, minute, second)

s = int(input())
print(watch(s))

Submission status: Accepted

Solution code:
n = int(input())

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

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

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())
h = int(S/3600)
m = int((S-3600*h)/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("{}:{}:{}".format(h,m,s))

Submission status: Accepted

Solution code:
import math
import copy
from copy import deepcopy
import sys
import fractions
# import numpy as np
from functools import reduce
# import statistics
import heapq
import collections
import itertools
sys.setrecursionlimit(100001)

# input = sys.stdin.readline
# sys.setrecursionlimit(10**6)

# ===FUNCTION===

def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList


# ===CODE===

input_s = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x1 = int(input())
x2 = x1//60
a = x1%60
b = x2%60
c = x2//60

print(f"{c}:{b}:{a}")

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
total = int(input())
hour = math.floor(total / 3600)
minutes = math.floor((total - (hour * 3600)) / 60)
sec = total - (hour * 3600) - (minutes * 60)
print(str(hour) + ":" + str(minutes) + ":" + str(sec))

Submission status: Accepted

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

h=S//3600

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

#秒
s=S%3600%60

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=int(input())
ss = s%60
hhmm =s//60
mm =hhmm%60
hh =hhmm//60
#print('{}:{}:{}'.format(hh,mm,ss))
print(hh,mm,ss, sep=':')

Submission status: Accepted

Solution code:
def solve(x):
    h = x//3600
    m = (x%3600)//60
    s = (x%3600)%60
    return (str(h) +":" + str(m) + ":" + str(s))

print(solve(int(input())))

Submission status: Accepted

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

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(f'{h}:{m}:{s}')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num=int(input())
h=num//3600 #if num//3600!=0 else ''
h_mod=num%3600
m=h_mod//60 #if h_mod//60!=0 else ''
s=h_mod%60 #if h_mod%60 !=0 else ''
print('{}:{}:{}'.format(h,m,s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_second = int(input())

hour = input_second//3600
minute = (input_second-hour*3600)//60
second = (input_second-hour*3600-minute*60)

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

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

Submission status: Accepted

Solution code:
S = int(input())

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

Submission status: Accepted

Solution code:
S = int(input())

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

Submission status: Accepted

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

#print("{}:{}", format(hour, min))
#print("aaa")
print(hour, min, sec, sep=':')
#print "aaa"
#print(":")

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

print(f"{S // 3600}:{(S % 3600) // 60}:{(S % 3600) % 60}")

Submission status: Accepted

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

i=i-h*3600

m=int(i/60)

i=i-m*60

s=i

out=str(h)+':'+str(m)+':'+str(s)

print(out)

Submission status: Accepted

Solution code:
sec = int(input())
hour = sec // 3600
minuts = (sec - hour * 3600) // 60
print("{}:{}:{}".format(hour, minuts, sec % 60))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s_total = int(input())

h = s_total // 3600

m = (s_total - h * 3600) // 60

s = s_total % 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:
input_string = input()

time_sec = int(input_string)

temp_minute, second = divmod(time_sec, 60)
hour, minute = divmod(temp_minute, 60)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time = int(input())

h = time//(60*60)
time-=h*(60*60)
m = time//60
time-=60*m
s = time

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

s = S % 60
M = S // 60

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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