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

Solution (Python):
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= '')

Solution (Python):
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= '')

Solution (Python):
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= '')

Solution (Python):
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='')

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

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

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

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

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

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

Solution (Python):
S=int(input())
m,s=divmod(S,60)
h,m=divmod(m,60)
print('{:d}:{:d}:{:d}'.format(h,m,s))

Solution (Python):
S=int(input())

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

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

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

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

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

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

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

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

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

Solution (Python):
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}")

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

Solution (Python):
s = int(input())

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

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

Solution (Python):

















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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
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}")

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

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

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

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

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

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

Solution (Python):
import datetime

S = int(input())

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

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

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

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

Solution (Python):
n = int(input())

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

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

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

Solution (Python):
S = int(input())

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

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

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

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

Solution (Python):
s = int(input())

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

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

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

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

Solution (Python):
s = int(input())

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

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

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

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

Solution (Python):
import math
import copy
from copy import deepcopy
import sys
import fractions

from functools import reduce

import heapq
import collections
import itertools
sys.setrecursionlimit(100001)






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




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

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

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

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

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

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

Solution (Python):

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

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

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

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

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

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

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

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

Solution (Python):
S = int(input())

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

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

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

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

Solution (Python):
s = int(input())
h = s // 3600
h2 = s % 3600
m =  h2// 60
s = h2 % 60

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

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

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

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

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

Solution (Python):
S = int(input())

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

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

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

Solution (Python):
S=int(input())


h=S//3600


m= S%3600//60


s=S%3600%60

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

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

Solution (Python):
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}")

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

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

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

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

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

Solution (Python):
s=int(input())
ss = s%60
hhmm =s//60
mm =hhmm%60
hh =hhmm//60

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

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

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

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

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

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

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

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

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

Solution (Python):
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='')

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

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

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

Solution (Python):
S = int(input())

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

Solution (Python):
S = int(input())

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

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



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

Solution (Python):
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=":")

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

Solution (Python):
S = int(input())

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

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

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

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

Solution (Python):
s_total = int(input())

h = s_total // 3600

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

s = s_total % 60

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

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

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

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

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

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

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

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

Solution (Python):
s = int(input())

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

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

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

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

if __name__ == '__main__':
  main()

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

Solution (Python):
S = int(input())

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

Solution (Python):
S = int(input())

s = S % 60
M = S // 60

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

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

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

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

Solution (Python):

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
S = int(input())

s = S%60
m = (S//60)%60
h = (S//60)//60
print(str(h)+':'+str(m)+':'+str(s))

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

Solution (Python):
s = int(input())

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

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

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

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

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

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

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

Solution (Python):
S = int(input())

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

Solution (Python):
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}")

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

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

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

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

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

Solution (Python):
n = int(input())

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

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

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

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

Solution (Python):

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

S = int(input())

minute = S // 60
second = S % 60

hour = minute // 60
minute = minute % 60

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

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

Solution (Python):
sec=int(input())

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

Solution (Python):
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=":")

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

Solution (Python):
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]}')

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

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

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

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

Solution (Python):



time= int(input())



s= time%60
time//=60
m= time%60
h=time//60

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

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

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

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

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

Solution (Python):
s = int(input())

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

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

Solution (Python):
s = int(input())

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

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

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

Solution (Python):
s=int(input())

print(str(s//3600) +":"+str((s%3600)//60)+":"+str(s%60))

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

Solution (Python):
s = int(input())

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

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

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

Solution (Python):
s = int(input())
hr = s // 3600
mi = (s % 3600) // 60
sec = (s % 3600) % 60
print('{}:{}:{}'.format(hr, mi, sec))

Solution (Python):
t = int(input())
m, s = divmod(t, 60)
h, m = divmod(m, 60)
print(f"{h}:{m}:{s}")

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

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

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

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

print(str(x//3600)+":"+str((x//60)%60)+":"+str(x%60%60))

Solution (Python):
S = int(input())

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

Solution (Python):

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

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

Solution (Python):
import sys
input = sys.stdin.readline

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

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

Solution (Python):
n = int(input())

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

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

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

Solution (Python):
S = int(input())

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

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

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

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

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

Solution (Python):
S = int(input())

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

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

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

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

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

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

Solution (Python):
S=int(input())

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

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

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

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

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

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

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

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

m = h_ // 60
s = h_ % 60

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

Solution (Python):
S=int(input())

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

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

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

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

Solution (Python):
import datetime

S = int(input())

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

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

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

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

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

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

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

Solution (Python):
s = int(input())

divh , modh = divmod(s,3600)

divm , modm = divmod(modh,60)

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

Solution (Python):
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=':')

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

Solution (Python):
time = int(input())

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

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

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

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

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

Solution (Python):
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}")

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

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

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

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

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

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

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