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):
seconds = input()
seconds = int(seconds)
hours = 0
minutes = 0

while seconds >= 3600:
    hours += 1
    seconds -= 3600

while seconds >= 60:
    minutes += 1
    seconds -= 60

fmt = (str(hours) + ':' + str(minutes) + ':' + str(seconds))
print(fmt)

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

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

Solution (Python):
s = int(input())
h,hmod = divmod(s,3600)
m,mmod = divmod(hmod,60)
print(str(h) + ":" + str(m) + ":" + str(mmod))

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

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

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

h = time - (time % 3600)

time = time - h

m = time - (time % 60)

s = time - m



print(str(int(h / 3600))+':'+str(int(m / 60))+':'+str(s))

Solution (Python):


time = int(input())
sec = time % 60
min = (time // 60) % 60
hour = time // 3600
print('{}:{}:{}'.format(hour, min, sec))

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

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

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

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

Solution (Python):


X = input()

H = X / 3600
M = (X % 3600) / 60
S = (X % 3600) % 60

print('%d:%d:%d' % (H,M,S))

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys

if __name__ == '__main__':
    import doctest
    doctest.testmod()
    S = int(sys.stdin.read())
    h = S / 3600
    m = (S % 3600) / 60
    s = S % 60
    print "%d:%d:%d" % (h, m, s)

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

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

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

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

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

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

Solution (Python):
S = int(input())
hh = int(S / 3600)
mm = int((S - hh * 3600) / 60)
ss = int((S - hh * 3600 - mm * 60))
print("{}:{}:{}".format(hh, mm, ss))

Solution (Python):
s = int(input())
HH = int(s / 3600)
Mi = int((s - HH * 3600) / 60)
ss = s - (HH * 3600 + Mi * 60)
print(str(HH)+':'+str(Mi)+':'+str(ss))

Solution (Python):
seconds=int(input())
hours=int(seconds/3600)
minutes=int((seconds-hours*3600)/60)
seconds=(seconds-hours*3600-minutes*60)
print(str(hours)+":"+str(minutes)+":"+str(seconds))

Solution (Python):
k=input()
s1=int(k)
msg=str(s1//3600)+":"+str((s1-(s1//3600)*3600)//60)+":"+str(s1%60)
print(msg)

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

Solution (Python):
a=int(input())
h,m=0,0
if int(a/(60**2))>0:
    h=int(a/(60**2))
a-=(60**2)*h

if int(a/60)>0:
    m=int(a/60)
a-=60*m
s=a
print(h,":",m,":",s,sep='')

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

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

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

Solution (Python):



number = int(input())

hour = number // (60 ** 2)
minute = (number // 60) % 60
second = number % 60

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

Solution (Python):
S = int(input())
hms = map(str, [S//3600, (S%3600)//60, S%60])
print(':'.join(hms))

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

Solution (Python):
inputed_data = input()
int_data = int(inputed_data)
seconds = int_data % 60
minutes = (int_data - seconds) // 60 % 60
hours = (int_data - seconds) // 60 // 60

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

Solution (Python):
import math as m
def solve(s):



    
    hours = m.floor(s/3600)
    mod_hour = s%3600
    minutes = m.floor(mod_hour/60)
    seconds = mod_hour%60
    answer_format = "{0}:{1}:{2}".format(hours,minutes,seconds)
    print(answer_format)


def answer():
    s = int(input())
    solve(s)

if __name__ == '__main__':
    answer()

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

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

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

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

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

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

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

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

Solution (Python):



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

Solution (Python):
second = input()

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

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

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

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

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

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

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

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

h = s/3600
m = (s%3600)/60
print('%d:%d:%d'%(h,m,s%60))

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

h = s / 3600
m = (s%3600) / 60
print('%d:%d:%d'%(h, m, s%60))

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

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

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

h = s/3600
m = (s%3600)/60
print('%d:%d:%d'%(h,m,s%60))

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

h=s/3600
m=(s%3600)/60
print('%d:%d:%d'%(h,m,s%60))

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
k=int(input())
h1=k//3600
h2=k%3600

m1=h2//60
m2=h2%60


print(str(h1)+":"+str(m1)+":"+str(m2))

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

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

Solution (Python):

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

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

h = s//3600
s %= 3600

m = s//60
s %= 60

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

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

print(str(h)+':'+str(m)+':'+str(s-h*3600-m*60))

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

hour = int(time/3600)
minute = int( (time - 3600 * hour)/60 )
second = time - 3600 * hour - 60 * minute

print(hour, end=':')
print(minute, end=':')
print(second)

Solution (Python):
a=input()
a=int(a)
b=a//3600
c=a-b*3600
d=c//60
e=c-d*60
s="{0}:{1}:{2}".format(b,d,e)
print(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())

sec = S % 60
min = S // 60
hour = min // 60
min = min % 60

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

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

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

Solution (Python):
time = int(input())
q,s = divmod(time,60)
h,m = divmod(q,60)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

minites = second // 60
second = second % 60
hour = minites //60
minites = minites % 60

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

Solution (Python):
n = int(input())
h = n // (60 ** 2)
ms = n - h * (60 ** 2)
m = ms // 60
s = int(ms - m * 60)

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

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

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

hour = s // 3600
s = s - hour*3600
minutes = s // 60
s = s - minutes*60

print(str(hour) + ":" + str(minutes) + ":" + str(s))

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

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

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

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

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

h=int(a//3600)

m=int((a%3600)//60)

s=int((a%3600)%60)

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

Solution (Python):
n = int(input())
hour = n // 3600
minute = (n - 3600* hour) // 60
sec = (n- 3600 * hour - 60 * minute) 
print(f'{hour}:{minute}:{sec}')

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

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

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

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

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

Solution (Python):
second = int(input())
print(second//(60**2),':',(second%(60**2))//60,':',second%60,sep='')

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
inputed_seconds = input()
hours = int(inputed_seconds) // 3600
minutes = (int(inputed_seconds) - int(hours) * 3600) // 60
seconds = (int(inputed_seconds) - int(hours) * 3600) % 60
print(int(hours), ":", int(minutes), ":", int(seconds), sep="")

Solution (Python):
a=int(input())
h, hourmod = divmod(a, 3600)
m, minmod = divmod(hourmod, 60)
ans = str(h)+':'+str(m)+':'+str(minmod)
print(ans)

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

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

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

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

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

Solution (Python):
N=int(input())
m=N%(60*60)
H=int(N/(60*60))
M=int(m/60)
s=m%60
k=str(H)
b=str(M)
r=str(s)
print(k+":"+b+":"+r)

Solution (Python):


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

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

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

s = a % 60
m = a // 60 % 60
h = a // 60 //60
print(h,end=':')
print(m,end=':')
print(s)

Solution (Python):




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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
S = int(open(0).read())
h = S // (60 * 60)
m = (S - (h * 60 * 60)) // 60
s = (S - (h * 60 * 60) - (m * 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//60
s=S%60
ans=str(h)+":"+str(m)+":"+str(s)

print(ans)

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

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

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

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

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

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

Solution (Python):
a = int(input())
b = a//3600
c = a%3600//60
d = a%60
print(f'{b}:{c}:{d}')

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

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

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

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

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

Solution (Python):
S=int(input())
x=S//3600
y=(S%3600)//60
z=S%60
print(str(x)+":"+str(y)+":"+str(z))

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

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

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

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

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())
sec = str(T % 60)
T = T // 60
min = str(T % 60)
hour = str(T // 60)

print(':'.join([hour, min, sec]))

Solution (Python):
s = int(input())
hms = []
for i in range(3):
    hms.append(s % 60)
    s //= 60
print(str(hms[2]) + ':' + str(hms[1]) + ':' + str(hms[0]))

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

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

h = int(num / 60 / 60)
m = int(num / 60) % 60
s = num % 60

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

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

h = S//3600
S -= h*3600

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

s = S

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

Solution (Python):
a = int(input())
hour,first = divmod(a,3600)
min,sec = divmod(first, 60)
print("{}:{}:{}".format(hour,min,sec))

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

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

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

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

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())
h = int(S/3600) if 9 < int(S/3600) else int(S/3600)
m = int(S/60) % 60 if 9 < int(S/60) % 60 else int(S/60) % 60
s = S % 60 if 9 < S % 60 else S % 60
print("{0}:{1}:{2}".format(h, m, s))

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

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

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



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

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

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

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

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):
second = int(input())
h = second // (60 * 60)

basetime = second - (h * 60 * 60)
m = basetime // 60
s = basetime - (m * 60)
print(f"{h}:{m}:{s}")

Solution (Python):
number = int(input())
hour = number // 3600
minute = number % 3600 // 60
second = number % 60
print(hour, minute, second, sep=':')

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

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

print("{0}:{1}:{2}".format(b,c,d))

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

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

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

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

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

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


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

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

Solution (Python):
def solve():
    s = int(input())
    h = s // 60**2
    m = (s-h*60**2)//60
    s -= h*(60**2)+m*60
    print(":".join(list(map(str,[h,m,s]))))
    return 0

if __name__ == "__main__":
    solve()

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

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

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

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

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

H = x // 3600
x = x % 3600

M = x // 60
S = x % 60

print(str(H) + ":" + str(M) + ":" + str(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())
h = s // 3600
m = s % 3600 // 60
s = s % 60
print(f"{h}:{m}:{s}")

Solution (Python):
sec = int(input())
hr = int(sec/3600)
mi = int((sec%3600)/60)
sd = int((sec%3600)%60)

print(f"{hr}:{mi}:{sd}")

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

hour=int(time/3600)
minutes=int((time%3600)/60)
second=time%60
print(str(hour)+":"+str(minutes)+":"+str(second))

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

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

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

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

h = s // 3600

s = s - h*3600

m = s // 60

s = s - m*60

print ("%d:%d:%d"%(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):
x=int(input())

Ha = x%3600

H1=x-Ha
H=H1//3600


Ma = Ha%60
M1 = Ha-Ma
M = M1//60

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

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

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

print(S//3600,(S%3600)//60,S%60,sep=":")

Solution (Python):
t = int(input())
h=0
m=0
while t >= 3600:
    t-=3600
    h+=1
while t >=60:
    t-=60
    m+=1
print(h,m,t,sep=":")

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

h,r=divmod(sec,3600)
m,r=divmod(r,60)
s=r
print(str(h)+":"+str(m)+":"+str(s))

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

ss = s%60
mm = (s/60)%60
hh = (s/3600)%60

print('%d:%d:%d' % (hh, mm, ss))

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

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

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

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

Solution (Python):
import math

num = int(input())

hour = math.floor(num/3600)
minute = math.floor(num/60) - hour * 60
sec = num - (hour * 3600) - (minute * 60)

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

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

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