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

S = int(sys.stdin.readline())
print("%d:%d:%d" % (S/3600, S/60%60, S%60))

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

Solution (Python):



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

Solution (Python):
def convert(SS):
    hh = SS // 3600
    mm = (SS - hh*3600) // 60
    ss = SS - hh*3600 - mm*60
    print(str(hh) + ':' + str(mm) + ':' + str(ss))

SS = int(input())
convert(SS)

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

Solution (Python):



















x=int(input())



hh=x/3600
hh_remain = x%3600


mm=hh_remain/60
mm_remain = hh_remain%60


ss=mm_remain

print ("%d:%d:%d"%(hh,mm,ss));

Solution (Python):



















x=int(input())



hh=int(x/3600)
hh_remain = x%3600


mm=int(hh_remain/60)
mm_remain = hh_remain%60


ss=mm_remain

print ("{0}:{1}:{2}".format(hh,mm,ss));

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

Solution (Python):
import sys
S = input()
sec = int(S)
if(sec < 86400):
    if(sec >= 0):
        h = int(sec / 3600)
        sec = sec % 3600
        m = int(sec / 60)
        s = sec % 60
        print(h,end="")
        print(":",end="")
        print(m,end="")
        print(":",end="")
        print(s)

Solution (Python):
S = int(input())
h = int(S / 3600)
r1 = int(S % 3600)
m = int(r1 / 60)
r2 = int(r1 % 60)
s = r2
print(":".join([str(h), str(m), str(s)]), end = "\n")

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

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

Solution (Python):
s = int(input())
m, s = s/60, s%60
h, m = m/60, m%60
t = (h, m, s)
print(":".join(map(str, map(int, t))))

Solution (Python):


def main():
	total= int(input())
	ti = divmod(divmod(total,60)[0],60)
	print("%d:%d:%d" % (ti[0],ti[1],total % 60))
if __name__ == '__main__':
  main()

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

hour = S // 3600
min = (S - 3600 * hour) // 60
sec = S - 3600 * hour - 60 * min

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

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

h = str(h)
m = str(m)
s = str(s)
print(":".join([h, m, s]))

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

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

Solution (Python):
S = int(input())
h = 0
m = 0
s = 0
 
while True:
    if S >= 3600:
        h += 1
        S -= 3600
    elif S >= 60:
        m += 1
        S -= 60
    else:
        break
 
print(str(h) + ":" + str(m) + ":" + str(S))

Solution (Python):
S = int(input())
h = 0
m = 0
s = 0
 
while True:
    if S >= 3600:
        h += 1
        S -= 3600
    elif S >= 60:
        m += 1
        S -= 60
    else:
        break
 
print(str(h) + ":" + str(m) + ":" + str(S))

Solution (Python):
time = input()

h = time / 3600
time -= h * 3600

m = time / 60
time -= m * 60

s = time

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

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

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

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

print '{0}:{1}:{2}'.format(s/3600, s%3600/60, s%60)

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

Solution (Python):



n=input()
minutes = n//60
seconds = n%60
hours = minutes // 60
minutes = minutes%60

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

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

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

Solution (Python):
x=input()
y=x.split(" ")
a=int(y[0])
h=a//(60*60)
s=a%60
m=((a-s)//60)%60
str=str(h)+":"+str(m)+":"+str(s)
print(str)

Solution (Python):

s = int(input())

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

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

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

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

Solution (Python):
sec = int(raw_input())
H = 3600
M = 60

h = sec / H
sec = sec % H
m = sec / M
s = sec % M

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

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

Solution (Python):
a = int(input())
h = a // (60**2)
m = (a - h * 60 * 60) // 60
s = a - h* 60 * 60 - m * 60 
print("%d:%d:%d"%(h,m,s))

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

Solution (Python):


sec  = int(input())

hun  = int(sec/60)
hour = int(hun/60)

hun -= hour * 60
sec %= 60

print(hour,end=":")
print(hun,end=":")
print(sec)

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

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

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

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

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

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

Solution (Python):

import math

time=int(input())

h=math.floor(time/3600)
time=time%3600

m=math.floor(time/60)
s=time%60

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
line = raw_input()
t = int(line)
s = divmod(t, 60)
m = divmod(s[0], 60)
print str(m[0])+":"+str(m[1])+":"+str(s[1])

Solution (Python):
line = raw_input()
t = int(line)
s = divmod(t, 60)
m = divmod(s[0], 60)
print "%d:%d:%d" % (m[0], m[1], s[1])

Solution (Python):
t = input()
s = divmod(t, 60)
m = divmod(s[0], 60)
print "%d:%d:%d" % (m[0], m[1], s[1])

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

Solution (Python):
t = input()
s = divmod(t,60)
hm = divmod(s[0],60)
print "%d:%d:%d" % (hm[0],hm[1],s[1])

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

h = int(S / 3600)

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

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

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

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

Solution (Python):
s = int(input())
print("{0}:{1}:{2}".format(*map(int, [s/3600, s%3600/60, s%60])))

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

Solution (Python):




S = input()

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

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

Solution (Python):
s = int(raw_input())
h = s / (60*60)
s -= h*60*60
m = s / 60
s -= m*60
print '%d:%d:%d'%(h,m,s)

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

Solution (Python):
import sys

data = int(sys.stdin.readline().strip())
seconds, pre = data % 60, data / 60
minutes, hours = pre % 60, pre / 60

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

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

Solution (Python):
S = input()

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

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

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

Solution (Python):
time=input()

hour=time/3600
time=time%3600

minute=time/60
second=time%60

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

Solution (Python):
n = int(input())
if (n < 60):
    h = 0
    m = 0
    s = n
else:
    s = n % 60
    h = n // 3600
    m = (n - (h * 3600) - s) / 60
print('{}:{:.0f}:{}'.format(h, m, s))

Solution (Python):
x = input()

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

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

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

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

Solution (Python):
S = int(raw_input())
m,s = divmod(S, 60)
h,m = divmod(m, 60)
print "%d:%d:%d" % (h,m,s)

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

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

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

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

Solution (Python):
s = int(input())
x = [s // 3600, ":", (s % 3600) // 60, ":", (s % 3600) % 60]
for i in x:
    print(i, end = "")
print("")

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

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

Solution (Python):


def Watch(S):
    h = int(S/3600)
    m = int((S%3600)/60)
    s = int((S%3600)%60)
    return h,m,s

if __name__=="__main__":
    S = input()
    h,m,s = Watch(int(S))
    print(str(h)+":"+str(m)+":"+str(s))

Solution (Python):
t = input();
tm = t / 60
s = t % 60
h = tm / 60
m = tm % 60

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

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

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

h = int(t / (60 * 60))
m = int((t - 60 * 60 * h) / 60)
s = t - 60 * 60 * h - 60 * m

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

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

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

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

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

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

Solution (Python):
__author__ = 'CIPHER'

time = int(input())


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

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

second = int(time)
print(hour,minute,second,sep=':')

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

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

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

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

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

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

Solution (Python):
total_seconds = int(input())
hours = total_seconds / (60 * 60)
minutes = (total_seconds % (60 * 60)) / 60
seconds = (total_seconds % (60 * 60)) % 60
print("%d:%d:%d" % (hours, minutes, seconds))

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

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

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

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

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

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

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

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

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

Solution (Python):


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

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

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

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

Solution (Python):
a = int(input())
h = int(a / 3600)
m = int((a - h * 3600) / 60)
s = int(a - h * 3600 - m * 60)
print(":" .join(map(str, [h, m, s])))

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

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

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

Solution (Python):

S=int(input())

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

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

Solution (Python):
if __name__ == "__main__":
	a = int(input())

	h = a / 3600
	a %= 3600

	m = a / 60
	a %= 60

	s = a

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

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

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

Solution (Python):

sec = int(input())
 
minute = sec//60
sec = sec%60
 
hour = minute//60
minute = minute%60
 
print(':'.join(map(str,[hour,minute,sec])))

Solution (Python):
import sys

input_value = int(sys.stdin.readline())

hour = input_value/3600
input_value -= hour * 3600
minute = input_value/60
input_value -= minute * 60
second = input_value

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

Solution (Python):
m = divmod(int(input()), 60)
h = divmod(m[0], 60)
print(str(h[0]) + ':' + str(h[1]) + ':' + str(m[1]))

Solution (Python):
t = int(raw_input())

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

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

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

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

Solution (Python):


s1 = int(input())
s2 = s1%60
m1 = s1//60
m2 = m1%60
h = m1//60
print(str(h)+":"+str(m2)+":"+str(s2))

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

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

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

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

Solution (Python):
import time

t = int(input())
h = 0
m = 0
s = 0

t_str = time.gmtime(t)
h, m, s = t_str.tm_hour, t_str.tm_min, t_str.tm_sec
print('{0}:{1}:{2}'.format(h, m, s))

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

a = str(a)
b = str(b)
c = str(c)
print(":".join([a,b,c]))

Solution (Python):
if __name__ == '__main__':
    time_in_second = int(input())

    hour = time_in_second // 3600
    minute = (time_in_second % 3600) // 60
    second = time_in_second % 60

    print('{0:d}:{1:d}:{2:d}'.format(hour, minute, second))

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

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

Solution (Python):
import sys
def main():
  for line in sys.stdin:
    time = int(line)
    hour = int(time/3600)
    min = int((time - hour * 3600)/60)
    sec = int((time - hour * 3600 - min * 60))
    print("{0}:{1}:{2}".format(hour, min, sec)) 

if __name__ == "__main__":
  main()

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

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

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

Solution (Python):
import math

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

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

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

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

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

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

Solution (Python):


S = int(input())

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

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

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

Solution (Python):
sec = int(input())
h = int(sec/3600)

h_mod = int(sec%3600)

min = int(h_mod//60)
min_mod = int(h_mod%60)


print ( str(h) + ":" + str(min) + ":" + str(min_mod) )

Solution (Python):
input_sec = int(raw_input())

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

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

if second >= 0 and second < 86400:
    h = int(second / 3600)
    m = int((second % 3600) / 60)
    s = int(((second % 3600) % 60) % 60)

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

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

h = x // 3600
m = x % 3600//60
s = x % 3600 % 60
print('{}:{}:{}'.format(str(h), str(m), str(s)))

Solution (Python):
seconds = int(raw_input())
hour = seconds / 3600
minute = (seconds - (hour * 3600)) / 60
second = seconds - (hour * 3600) - (minute * 60)
print(str(hour) + ':' + str(minute) + ':' + str(second))

Solution (Python):
seconds = int(raw_input())
hour = seconds / 3600
minute = seconds % 3600 / 60
second = seconds - (hour * 3600) - (minute * 60)
print('%d:%d:%d'%(hour, minute, second))

Solution (Python):
ss = int(input())
s = ss % 60
m = (ss//60) % 60
h = (ss//60) // 60
print("%d:%d:%d" % (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):

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

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

if second >= 0 and second < 86400:
    h = int(second / 3600)
    m = int((second % 3600) / 60)
    s = int(((second % 3600) % 60) % 60)

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

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

Solution (Python):


S = int(input())

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

Solution (Python):
t = input()
h = t//60//60
m = t//60 - h*60
s = t - m*60 - h*60*60
print '%d:%d:%d' % (h, m, s)

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

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

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

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

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

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

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

Solution (Python):

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

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//60
s=S%60
print (":".join([str(h), str(m), str(s)]))

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

if S >= 3600:
    h=S//3600
    m=S%3600//60
    s=S%60
elif 3600 > S >= 60:
    h=0
    m=S//60
    s=S%60
else:
    h=m=0
    s=S
print(h, m, s, sep=":")

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

Solution (Python):
S = int(raw_input())
h,i = divmod(S,3600)
m,s = divmod(i,60)
print "%s:%s:%s"% (h,m,s)

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

Solution (Python):
import fileinput






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


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

Solution (Python):
input_data = int(raw_input())

hour = input_data / 3600
minute = (input_data - hour * 3600) / 60
second = input_data % 60
print("%d:%d:%d") % (hour,minute,second)

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

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

print(":".join(map(str, [h, m, S])))

Solution (Python):
def printTime(s):
    """
    s: integer (seconds)

    >>> printTime(10)
    0:0:10
    >>> printTime(60)
    0:1:0
    >>> printTime(45296)
    12:34:56
    """
    hour = s // 3600
    s %= 3600

    minute = s // 60
    s %= 60

    second = s

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


if __name__ == '__main__':


    time = int(input())
    printTime(time)

Solution (Python):


def seconds_to_hms_format(seconds):
    m, s = divmod(int(seconds), 60)
    h, m = divmod(m, 60)
    return "%d:%d:%d" % (h, m, s)

def main():
    seconds = input()
    print(seconds_to_hms_format(seconds))

if __name__ == '__main__':
    main()

Solution (Python):
S=input()
h,m,s=1,1,0.0
h=S/3600
m=(S-h*3600)/60
s=(S-h*3600-m*60) 
print ':'.join(map(str,[h,m,s]))

Solution (Python):
s=int(input())
print(':'.join(map(str,(s//3600,s//60%60,s%60))))

Solution (Python):


def seconds_to_hms_format(seconds):
    m, s = divmod(int(seconds), 60)
    h, m = divmod(m, 60)
    return "%d:%d:%d" % (h, m, s)


def main():
    seconds = input()
    print(seconds_to_hms_format(seconds))


if __name__ == '__main__':
    main()

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

Solution (Python):
t=int(raw_input())
print "%d:%d:%d"%((t/3600),(t/60)%60,t%60)

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

hms = [0]*3
for i in range(3):
    tmp = int(sec % 60)
    hms[i] = tmp
    sec = int((sec-tmp)/60)

hms.reverse()

print(str(hms[0])+':'+str(hms[1])+':'+str(hms[2]))

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

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

Solution (Python):
input_data = int(input())
[temp_s, s] = divmod(input_data, 60)
[temp_s, m] = divmod(temp_s, 60)
[temp_s, h] = divmod(temp_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("%s:%s:%s" % (h,m,s))

Solution (Python):
input_str = input()

input_tuple = divmod(int(input_str), 3600)

output_str = str(input_tuple[0]) + ":"

input_tuple = divmod(input_tuple[1], 60)

output_str += str(input_tuple[0]) + ":" + str(input_tuple[1])

print(output_str)

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

h = S//3600
S = S%3600

m = S//60
s = S%60

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

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

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

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



import sys
from datetime import time

def init():
    data = []
    try:
        while(True):
            line = raw_input()
            if not line: break
            data.append(line)
    except EOFError:
        pass
    return data

def valid(n):
    return (1 <= n <= 100)

def sec2hms(s):
    m , sec = dev_and_mod(s, 60)
    hour, mi = dev_and_mod(m, 60)
    return (hour, mi, sec)
    
def dev_and_mod(n, d):
    return (n/d, n%d)

def main():
    print "%d:%d:%d" % sec2hms(int(init().pop()))

if __name__ == '__main__':
    main()

Solution (Python):
sec = int(input())
h = int(sec / 3600)
m = int((sec - h * 3600) / 60)
print(":".join(list(map(str, [h, m, sec - h * 3600 - m * 60]))))

Solution (Python):
import datetime

n = int(input().rstrip())



int_hour = n // 3600
int_minute = (n % 3600) // 60
int_second = n- int_hour*3600 - int_minute * 60


print(int_hour,int_minute, int_second, sep=":" )

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



int_hour = n // 3600
int_minute = (n % 3600) // 60
int_second = n- int_hour*3600 - int_minute * 60


print(int_hour,int_minute, int_second, sep=":" )

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

Solution (Python):

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

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

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

Solution (Python):
a = int(input())
b,c = divmod(a,3600)
d,e = divmod(c,60)
print(b,d,e,sep=':')

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

Solution (Python):
S=input()

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

Solution (Python):
if __name__ == "__main__":
    S = int(input())
    s = S%60
    S = int(S/60)
    m = S%60
    h = int(S/60)

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

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

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

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