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):
a=int(input())
hour=int(a/3600)
minutes=int((a%3600)/60)
seconds=int(((a%3600)%60))
print(str(hour)+":"+str(minutes)+":"+str(seconds))

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

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

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

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

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):
sec = int(input())
hour = int(sec/3600)
sec -= 3600*hour
min = int(sec/60)
sec -= 60*min
print(str(hour)+":"+str(min)+":"+str(sec))

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

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

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

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

print("{}:{}:{}".format(hh, mm, ss))

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

H = s // 3600
M = (s - (3600 * H)) // 60
S = (s - (3600 * H)) % 60

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

Solution (Python):
time=int(input())
H=int(time/3600)
M=int((time-3600*H)/60)
S=int(time-3600*H-60*M)
print(H,end = "")
print(":",end = "")
print(M,end = "")
print(":",end = "")
print(S)

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

Solution (Python):
time = int(input())
hour, hour_rem = time // (60*60), time % (60*60)
min, min_rem = hour_rem // 60, hour_rem % 60
print('{}:{}:{}'.format(hour, min, min_rem))

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

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

Solution (Python):


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

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

Solution (Python):
import datetime

s = int(input())
hour = int(s / 60 / 60)
minute = int((s - (hour * 60 * 60)) / 60)
second = int((s - (hour * 60 * 60)) % 60)
print("{0}:{1}:{2}".format(hour,minute,second))

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

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

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

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

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

Solution (Python):


import sys
import os
import pprint




n = int(input())

h = int(n / 3600)
n -= 3600 * h

m = int(n / 60)
n -= 60 * m

s = n

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):
N = int(input())
H = N // 3600
M = (N % 3600) // 60
S = N - (H * 3600 + M * 60)
print(str(H) + ":" + str(M) + ":" + str(S))

Solution (Python):


time = input().rstrip()

print(str(int(time)//3600) + ":" + str(int(time)%3600//60) + ":" + str(int(time)%3600%60))

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

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

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

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

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

hour = str(seconds // 3600)
minute = str(seconds % 3600 // 60)
second = str(seconds % 3600  % 60)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

def watch(s):
    hh = s // (60 * 60) 
    mm_s = s % (60 * 60) 
    mm = mm_s // 60 
    ss = mm_s % 60 

    print(str(hh) + ":" + str(mm) + ":" + str(ss))

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

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

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

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

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

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

Solution (Python):



def func():
    try:
        time=int(input().rstrip())
        if(time<0):
            print("input error")
    except:
        print("input error 1")
        return -1
    
    hours = time // 3600
    minutes = (time % 3600) // 60
    seconds = time % 60
    
    print(str(hours)+":"+str(minutes)+":"+str(seconds))

func()

Solution (Python):

s = int(input())
hour = s//3600
remain = s%3600
minute = remain//60
second = remain%60
print (str(hour)+":"+str(minute)+":"+str(second))

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

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

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

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

Solution (Python):


def hms(num):
    h = int(num / (60 ** 2))
    m = int((num - h * 3600) / 60)
    s = int((num - (h * 3600) - m * 60))
    print(str(h) + ":" + str(m) + ":" + str(s))


if __name__ == '__main__':
    n = int(input())
    hms(n)

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

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

Solution (Python):

S = input()

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

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

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

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

Solution (Python):
def main(arg):
    arg = int(arg)
    h,m,s=0,0,0
    while arg >= 3600:
        arg -= 3600
        h += 1
    while arg >= 60:
        arg -= 60
        m += 1
    s = arg
    result = "{}:{}:{}".format(h,m,s)
    return result


if __name__ == '__main__':
    print(main(input()))

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

Solution (Python):

'''
?§??????????
'''
a = input()
ho = int(int(a)/3600)
mi = int((int(a)-ho*3600)/60)
se = int((int(a)-ho*3600-mi*60))

print(str(ho)+":"+str(mi)+":"+str(se))

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

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

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

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

s = n % 60;

n = int(n/60);
m = n % 60;

h = int(n/60);

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

Solution (Python):


time = int(input().rstrip())

s = time % 60
m = time // 60

h = m //60
m = m % 60

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

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

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

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

Solution (Python):
sec = input()
h, s = divmod(int(sec), 3600)
m, s = divmod(s, 60)
print(':'.join([str(h), str(m), str(s)]))
pass

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):
second = int(input())
hour = int(second / 3600)
second -= 3600 * hour
minute = int(second / 60)
second -= 60 * minute
print("{0}:{1}:{2}".format(hour, minute, second))

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

Solution (Python):
import sys

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

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

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

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

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

Solution (Python):
seconds = int(input())
hours = seconds // 3600
seconds %= 3600
minutes = seconds // 60
seconds %= 60

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

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

if time / 3600 > 0:
    hour = int(time/3600)
else:
    hour = 0
if (time - hour * 3600) / 60 > 0:
    minute = int((time - hour * 3600)/60)
else:
    minute = 0
if time - (hour*3600 + minute*60) > 0:
    second = int(time - (hour*3600 + minute*60))
else:
    second = 0
    
print(str(hour) + ":" + str(minute) + ":" + str(second))

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

Solution (Python):
list = [0] * 3
a = int(input())
list[0] = a/3600
a_p = a%3600
list[1] = a_p/60
list[2] = a_p%60
print ":".join(map(str,list))

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

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

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

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

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

Solution (Python):

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

Solution (Python):
time = int(input())
hour = min = sec = 0

while time >= 3600:
    time -= 3600
    hour += 1

while time >= 60:
    time -= 60
    min += 1

sec = time

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

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

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

a = S//3600 
b = (S%3600)//60 
c = (S%3600)%60 

print('{0}:{1}:{2}'.format(a,b,c))

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

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

a = S//3600 
b = (S%3600)//60 
c = (S%3600)%60 

print('{0}:{1}:{2}'.format(a,b,c))

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

h = t // 3600
t -= h * 3600

m = t // 60
t -= m * 60

s = t

print(':'.join(map(str, [h, m, s])))

Solution (Python):
input_data = int(input())
hour=int(input_data/3600)
input_data=int(input_data%3600)
min = int(input_data/60)
input_data=int(input_data%60)

answer = str(hour)+":"+str(min)+":"+str(input_data)
print(answer)

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

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

Solution (Python):
S=int(input())
x=int(S/3600)
print(x,end=":")
S=S-x*3600
x=int(S/60)
print(x,end=":")
S=S-x*60
print(S)

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

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

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

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

h = 0
m = 0
s = 0

hour = 3600
minute = 60

while hour <= time:
    h += 1
    time -= hour
while minute <= time:
     m += 1
     time -= minute
s = time
print('{}:{}:{}'.format(h, m, s))

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

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

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

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

Solution (Python):
S_input = input()
S_ans = S_input % 60
M = int(S_input / 60)
M_ans = M % 60
H_ans = int(M / 60)
print "%d:%d:%d"%(H_ans, M_ans, S_ans)

Solution (Python):


HOUR = 3600
MIN = 60

x = int(input())
H = x // HOUR
x = x % HOUR
M = x // MIN
x = x % MIN
S = x
print('%d:%d:%d' %(H, M, 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):
import sys

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

h = int(n / 3600)
n = n - (h * 3600)
m = int(n/60)
n = n - (m * 60)

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

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

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

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

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

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

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

s = sec

print(':'.join(map(str, [h, m, s])))

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

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

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

h = t // 3600
t = t % 3600

m = t // 60
t = t % 60

s = t

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

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

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

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

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

Solution (Python):
x=int(input())
h = 0 if x==0 else int(x/ (60*60))
zan = x - h * 60 * 60
m=0 if zan==0 else int(zan/ 60)
s = zan -m * 60
print(repr(h)+':'+ repr(m) + ':' +repr(s))

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

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

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

Solution (Python):
a = raw_input()
print ('%d:%d:%d' % (int(a)/3600,(int(a)%3600)/60,(int(a)%3600)%60))

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import math

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

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

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

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

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

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

def clock(S):
	s = int(S % 60)
	m = int((S / 60) % 60)
	h = int((S / 60) / 60)
	return ('{}:{}:{}'.format(h, m, s))

print(clock(S))

Solution (Python):
s = int(raw_input())
result = [s / 3600]
s %= 3600
result.append(s / 60)
result.append(s % 60)
print(":".join(str(i) for i in result))

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

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

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

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

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

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

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

if s >= 3600: 
    h = s//3600
    m = s%3600
    s = m%60
    m = m//60
elif s >= 60:
    h = 0
    m = s//60
    s = s%60
else:
    h = 0
    m = 0

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

Solution (Python):
nun = int(input())
hour = int(nun/60/60)
minit = int(nun/60%60)
sec = nun%60
print(str(hour) + ":" + str(minit) + ":" + str(sec))

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

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

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

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

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

Solution (Python):


import sys, math, os


PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")

sec = int(input())
hour = sec // 3600
sec = sec % 3600
minute = sec // 60
sec %= 60
print("%d:%d:%d" % (hour, minute, sec))

Solution (Python):
import math
s = int(input())
remain = 0

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

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


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

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

hour = int(a / 3600)
minute = int ((a-hour*3600)/60)
sec = int((a-hour*3600-minute*60))



print(hour,minute,sec,sep=":")

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

sec = in_sec % 60
min = (in_sec // 60) % 60
hour = (in_sec // 3600 )

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

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):
seconds=int(input())
hour, amari = divmod(seconds,3600)
minute, second = divmod(amari,60)

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

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

Solution (Python):

x = int(input())

h = x//3600
hh = x % 3600

m = hh//60

mm = hh % 60


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

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

Solution (Python):
s0 = int(input(""))
h = s0 / 3600
m = s0 % 3600 / 60
s1 = s0 % 3600 % 60

print(str(int(h)) + ":" + str(int(m)) + ":" + str(int(s1)))

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

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

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

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

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

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

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

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

Solution (Python):

i = input()
t = int(i)

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

print("%d:%d:%d" % (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):
s = int(input())
a = s / 3600
b = (s - a*3600) / 60
c = s - a*3600 - b*60
print str(a) + ":" + str(b) + ":" + str(c)

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

Solution (Python):
S=int(input())
a=S/3600
b=(S-3600*a)/60
c=S-3600*a-60*b
print str(a)+':'+str(b)+':'+str(c)

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

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

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

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

hour = all_time // 3600

minute = (all_time % 3600) // 60

second = (all_time % 3600) % 60

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

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

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

Solution (Python):
x = int(input())
h, r = divmod(x, 60*60)
m, s = divmod(r, 60)
print(h, m, s, sep=':')

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

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

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

Solution (Python):
h,m,s=0,0,int(input())
while s >= 3600:
    s-=3600
    h+=1
while s >= 60:
    s-=60
    m+=1
print(str(h)+':'+str(m)+':'+str(s))

Solution (Python):
h,m,s=0,0,int(input())
while s >= 3600:
    s-=3600
    h+=1
while s >= 60:
    s-=60
    m+=1
print(str(h)+':'+str(m)+':'+str(s))

Solution (Python):
from datetime import timedelta
print(':'.join(list(map(str,map(int,str(timedelta(seconds=int(input()))).split(':'))))))

Solution (Python):
a=input()
s=int(a)
if s<86400 and s>=0:

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

else:
    exit()

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

Solution (Python):
s = int(input())
sec = s%60
mn = int(((s - sec)%3600)/60)
hr = int((s -sec - mn*60)/3600)


print(str(hr)+":"+str(mn)+":"+str(sec))

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

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

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

h = s0 / 3600
m = s0 % 3600 / 60
s1 = s0 % 3600 % 60
 
print(str(int(h)) + ":" + str(int(m)) + ":" + str(int(s1)))

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

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

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

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

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

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

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

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

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

h = str(S//3600)
M = S%3600

m = str(M//60)

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

Solution (Python):
def conv(sec):
    h = sec // (60 * 60)
    m = (sec - h * (60 * 60)) // 60
    s = sec - m * 60 - h * (60 * 60) 
    return ":".join([str(h), str(m), str(s)])


print(conv(int(input())))