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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
h = n//3600
last = n-(h*3600)
m = s = 0
if last >= 60:
    m = last//60
    s = last%60
if last < 60:
    s = last
print(str(h)+":"+str(m)+":"+str(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline


S = int(input())
second = S % 60
Sm =  int((S - second) / 60)
minute = Sm % 60
hour = int((Sm - minute) / 60)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())

sec = s % 60
hm = (s - sec) // 60
min = hm % 60
hour = (hm - min) // 60

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
i = int(input())
st = 0
mt = 0
ht = 0

if i >= 60:
	st = i % 60
	mt = math.floor(i / 60)


if mt >= 60:
	ht = math.floor(mt / 60)
	mt = mt % 60

print(str(ht) + ':' + str(mt) + ':' + str(st))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
value = int(input())

h,m,s = 0,0,0
h = value // (60*60)
ha = value % (60*60)

m = ha // (60) 

s = ha % (60) 

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

Submission status: Accepted

Solution code:
def format(second):
    h = second // (60*60)
    t = (second // 60) % 60
    s = ((second % 60) % 60) % 60
    return('{}:{}:{}'.format(h, t, s))


if __name__ == "__main__":
    _second = int(input())
    print(format(_second))

Submission status: Accepted

Solution code:
hms = int(input())

s = hms % 60
hms -= s

hms /= 60

m = hms % 60

hms -= m

hms /= 60

ans = str(int(hms)) + ":" + str(int(m)) + ":" + str(int(s))

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

print(str(n//3600)+':'+str((n%3600)//60)+':'+str((n%3600)%60))

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:

x = int(input())

import math 

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


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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = int(input())

h = 0
m = 0
s = 0

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

str_S=input()
S=int(str_S)
if not(S >= 0 and S <=86400):
    sys.exit()
h=S // 3600
m=(S % 3600) // 60
s=(S % 3600) % 60
print(str(h) + ":" + str(m) + ":" + str(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

S = int(input())

minute = S // 60
second = S % 60

hour = minute // 60
minute = minute % 60

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sec=int(input())

H=sec//3600
M=sec%3600//60
S=sec%60
print('{}:{}:{}'.format(H,M,S))

Submission status: Accepted

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

while time_seconds != 0:
  if time_seconds >= 3600:
    time_seconds -= 3600
    h += 1
  elif 3600 > time_seconds >= 60:
    time_seconds -= 60
    m += 1
  else:
    s = time_seconds
    time_seconds = 0

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

Submission status: Accepted

Solution code:
def convertDatetime(t):
    t = int(t)
    h = t // (60*60)
    m = (t % (60*60)) // 60
    s = ((t % (60*60)) % 60)

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

def main():
    T = input()
    convertDatetime(T)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
T = int(input())
h = divmod(T, 3600)
m = divmod(h[1], 60)
s = divmod(m[1], 60)
print(f'{h[0]}:{m[0]}:{s[1]}')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


time= int(input())
#tmp = input()
#time = list(map(lambda a: int(a), tmp))
#print(time)
s= time%60
time//=60
m= time%60
h=time//60

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

Submission status: Accepted

Solution code:
import datetime

S = int(input())

td = datetime.timedelta(seconds=S)
m, s = divmod(td.seconds, 60)
h, m = divmod(m, 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)%60

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

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

Submission status: Accepted

Solution code:
s = int(input())

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

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

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())
hr = s // 3600
mi = (s % 3600) // 60
sec = (s % 3600) % 60
print('{}:{}:{}'.format(hr, mi, sec))

Submission status: Accepted

Solution code:
t = int(input())
m, s = divmod(t, 60)
h, m = divmod(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(h, m, s, sep=":")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x =int(input())
#x,y=map(int,input().split())
print(str(x//3600)+":"+str((x//60)%60)+":"+str(x%60%60))

Submission status: Accepted

Solution code:
S = int(input())

print(str(S // 3600)+':'+str(S % 3600 // 60)+':'+str(S % 60 % 60))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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 sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

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

h = m//60
m = m-60*h

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
second=int(input())
hour,second=divmod(second,3600)
minute,second=divmod(second,60)
print("{}:{}:{}".format(hour,minute,second))

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
time = int(input());
(hours, minutes, seconds) = (time / 3600, (time % 3600) / 60, (time % 3600) % 60);
print("{0}:{1}:{2}".format(int(hours), int(minutes), int(seconds)))

Submission status: Accepted

Solution code:
S = int(input())

HH = S //3600

remain = S - HH * 3600

minutes = remain // 60

seconds = remain - (minutes * 60)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

m = h_ // 60
s = h_ % 60

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

Submission status: Accepted

Solution code:
S=int(input())

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

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

Submission status: Accepted

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

S = int(input())

dt = datetime.datetime(2020, 2, 7)
dt += datetime.timedelta(seconds = S)

print("{}:{}:{}".format(dt.hour, dt.minute, dt.second))

Submission status: Accepted

Solution code:
time = int(input())
hour = int(time / 60 / 60)
minute = int(time/60%60)
second = int(time%60%60)
print(hour,":",minute,":",second, sep="")

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 - 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("%d:%d:%d"%(s/3600,(s%3600)/60,s%60))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())

divh , modh = divmod(s,3600)

divm , modm = divmod(modh,60)

print(f'{divh}:{divm}:{modm}')

Submission status: Accepted

Solution code:
def secondes_to_time(time):
    h,s = divmod(time,60**2)
    m,s = divmod(s,60)
    return h,m,s
h,m,s = secondes_to_time(int(input()))
print(h,m,s,sep=':')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time = int(input())

a = time // 3600
b = (time - a * 3600) // 60
c = time - (a * 3600) - (b * 60)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

number_h = int(number / 3600)
number_m = int((number % 3600) / 60)
number_s = int((number % 3600) % 60)

print(f"{number_h}:{number_m}:{number_s}")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time = int(input())

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

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

sec = time

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

Submission status: Accepted

Solution code:
T = int(input()) 
H = T // (60*60)
M = T%(60*60) // 60
S = T%60

print(str(H)+":"+str(M)+":"+str(S))

Submission status: Accepted

Solution code:
S = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

Submission status: Accepted

Solution code:
sec = int(input())


hour = sec//3600
min = (sec%3600)//60
sec = (sec%3600)%60
print(str(hour)+':'+str(min)+':'+str(sec))

Submission status: Accepted

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

Submission status: Accepted

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

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 // (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())
m, s = divmod(s, 60)
h, m = divmod(m, 60)
print('{}:{}:{}'.format(h,m,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())
h = S // 3600
m = (S % 3600) // 60
s = S % 60
print(":".join(map(str, [h, m ,s])))

Submission status: Accepted

Solution code:
s = int(input())

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

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

Submission status: Accepted

Solution code:
S = int(input())
M = 0
H = 0
if S >= 60:
    M = S // 60
    S = S % 60
    if M >= 60:
        H = M // 60
        M = M % 60
print(':'.join(map(str, [H, M, S])))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
#!python3

def resolve():
    s = int(input())

    c = []
    for i in range(2):
        a, b = divmod(s, 60)
        s = a
        c.append(str(b))
    c.append(str(a))
    c.reverse()
    print(":".join(c))

if __name__ == "__main__":
    resolve()

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

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

Submission status: Accepted

Solution code:
n = int(input())
print(n // 3600, end = ":")

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

Submission status: Accepted

Solution code:
T=int(input());

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=int(input())

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

a=str(h)+":"+str(t)+":"+str(s)
print(a)

Submission status: Accepted

Solution code:
x = int(input())
print(x//3600,':', x%3600//60,':', x%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:
import math

S = input()

sec = int(S)

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

hms = [str(h), str(m), str(s)]

strhms = ':'.join(hms)

print(strhms)

Submission status: Accepted

Solution code:
S = int(input())
hour = 60 * 60
minutes = 60

h_count = 0
m_count = 0

while True:
    if  S - hour >= 0:
        h_count += 1
        S = S - hour
    else:
        h = h_count
        break

while True:        
    if S - minutes >= 0:
        m_count += 1
        S = S - minutes
    else:
        m = m_count
        s = S
        break

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

Submission status: Accepted

Solution code:
jikan = int(input())
print(jikan // 3600, jikan // 60 % 60, jikan % 60, 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:
S = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

s = int(input())

hour = int(s / (60 * 60))
min = int((s / 60) % 60)
sec = int(s % 60)

print (str(hour) + ':' + str(min) + ':' + str(sec))

Submission status: Accepted

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

Submission status: Accepted

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

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(a,b,c,sep=':')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
hour = 3600
m = 60
s = 60

time = int(input())
one = time // hour
temp = time - one*hour
two = temp // m
three = temp - two*s
print("%s:%s:%s"%(one,two,three))

Submission status: Accepted

Solution code:
S = int(input())
hour = S // 3600
minute = S % 3600 // 60
second = S % 3600 % 60

print('%d:%d:%d' %(hour,minute,second))

Submission status: Accepted

Solution code:
import math

a = int(input())
s = a % 60
aa = math.floor(a / 60)
m = aa % 60
h = math.floor(aa / 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%60))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ITP1_1_D
# Watch
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_D
# encode : utf-8
S = int(input())
h = S // 3600
m = (S % 3600) // 60
s = S % 60
print("{}:{}:{}".format(h,m,s))

Submission status: Accepted

Solution code:
def num2hms(num):
    hunit = 3600
    munit = 60
    h = num // hunit
    num = num % hunit
    m = num // munit
    num = num % munit
    s = num
    return str(h) + ":" + str(m) + ":" + str(s)

if __name__ == "__main__":
    num = input()
    num = int(num)
    print(num2hms(num))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# inlist = input().split()
# a = (int(x) for x in inlist)

a = input()
a = int(a)
h = int(a/60/60)
m = int((a-60*60*h)/60)
s = a %60

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
s=int(input())
h=int(s/3600)
m=int((s%3600)/60)
s=int((s%3600)%60)
print(str(h)+":"+str(m)+":"+str(s))

Submission status: Accepted

Solution code:
given_second = int(input().rstrip())
minute = given_second // 60
hour = minute // 60
minute = minute % 60
second = given_second % 60
print(hour, minute, second, sep=":")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
from collections import deque
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")

def main():
    alls = int(input())
    allm, s = divmod(alls, 60)
    h, m = divmod(allm, 60)
    print("{}:{}:{}".format(h, m, s))

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
time = int(input())

if 0 <= time and time <= 86400:
    h = time // 3600
    m = (time % 3600) // 60
    s = (time % 3600) % 60
    print(str(h) + ":" + str(m) + ":" + str(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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