Problem:
Watch Write a program which reads an integer $S$ [second] and converts it to $h:m:s$ where $h$, $m$, $s$ denote hours, minutes (less than 60) and seconds (less than 60) respectively. Input An integer $S$ is given in a line. Output Print $h$, $m$ and $s$ separated by ':'. You do not need to put '0' for a value, which consists of a digit. Constraints  $0 \leq S \leq 86400$  Sample Input 1 46979 Sample Output 1 13:2:59

Solution (Python):
sec = int(input())
hour = sec // (60*60)
remain_sec = sec - hour * 60 * 60
minutes = remain_sec // 60
sec = remain_sec % 60
print(str(hour) + ":" + str(minutes) + ":" + str(sec))

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
sec = s - (h * 3600 + m * 60)
print('{}:{}:{}'.format(h,m,sec))

Solution (Python):

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

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

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

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

l=[h,m,sec]

print(':'.join(map(str,l)))

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

h, rest = divmod(i, (60*60))
m, s = divmod(rest, 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('{}:{}:{}'.format(h,m,s))

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

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

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

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

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

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

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

Solution (Python):
num = int(input())
hour = num // 3600
min = (num - (3600 * hour)) // 60
sec = (num - (3600 * hour)) % 60
print(str(hour) + ":" + str(min) + ":" + str(sec))

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

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

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

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

h, mod1 = divmod(sec, 3600)
m, s = divmod(mod1, 60)

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

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

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

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

a = x // 3600
b = x % 3600
c = b // 60
d = b % 60

print("%d:%d:%d" % (a,c,d))

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

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

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

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

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

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

h = i // 3600
mod3600 = i % 3600
m = mod3600 // 60
s = mod3600%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 = eval(input())
second = s % 60
totalSecond = s // 60

minute = totalSecond % 60
totalMinute = totalSecond // 60

hour = totalMinute % 60
print(f'{hour}:{minute}:{second}')

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

Solution (Python):
ss = int(input())
h = ss // 3600
m = (ss - h*3600) // 60
s = ss % 60
t =':'.join([str(n) for n in [h,m,s]])
print(t)

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):
second = int(input())
minute = second//60
hour = minute//60
print(str(hour) + ':' + str(minute % 60) + ':' + str(second % 60))

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

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

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

Solution (Python):
def convert_time_format(seconds:int) -> str:
    if seconds < 0:
        raise ValueError('Paramter seconds is less than 0.')
    if seconds > 86400:
        raise ValueError('Parameter seconds is larger than 86400')

    min = int(seconds / 60)
    sec = seconds % 60
    hour = int(min / 60)
    min = min % 60

    return '{0}:{1}:{2}'.format(hour, min, sec)

if __name__ == "__main__":
    seconds = input()
    print(convert_time_format(int(seconds)))

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

if __name__ == "__main__":
    main()

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

Solution (Python):

time = int(input())
hh = time // 3600
time = time % 3600
mm = time // 60
ss = time % 60
print('{}:{}:{}'.format(hh, mm, ss))

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):
second = int(input())
hour = second // (60 * 60)
second -= hour * 60 * 60
minite = second // 60
second -= minite * 60
print(hour,end=':')
print(minite,end=':')
print(second)

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

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

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

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

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

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

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

Solution (Python):
import sys

seconds = int(sys.stdin.read())
minutes, s = divmod(seconds, 60)
h, m = divmod(minutes, 60)

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

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

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

Solution (Python):
li = list(map(int,input().split()))

time = li[0]
h = int(time/3600)
time = time%3600
m = int(time/60)
time = time%60
s = time

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

hour,mod=divmod(S,3600)
minit,sec=divmod(mod,60)
print(str(hour)+":"+str(minit)+":"+str(sec))

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

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

h = S // (60 * 60)
m = (S // 60) - (h * 60)
s =  S - ((h * 60**2) + (m * 60))

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

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


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

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

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

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

Solution (Python):



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

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

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

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

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

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

try:
     (n)  =  int(input())
except:
    exit

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


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

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

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

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

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

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

minutes, seconds = divmod(S, 60)
hours, minutes = divmod(minutes, 60)

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

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

hour = s // 3600
min = s % 3600 // 60
sec = s % 3600 % 60

print(f'{hour}:{min}:{sec}')

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

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

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

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

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

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

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

Solution (Python):
import sys

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

h = int(n/60**2)
m = int((n%60**2)/60)
s = int(((n%60**2)%60)%60)

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

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

seconds = N % 60
minutes = N // 60 % 60
hours = N // 60 // 60
print(str(hours) + ":" + str(minutes) + ":" + str(seconds))

Solution (Python):


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

Solution (Python):
S = int(input())
S_ms = S % 3600
S_h = int((S - S_ms) / 3600)
S_s = S_ms % 60
S_m = int((S_ms - S_s) / 60)
print(str(S_h) + ":" + str(S_m) + ":" + str(S_s))

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

s = i % 60
hm = i // 60
h = hm // 60
m = hm % 60
print(":".join(map(str, [h,m,s])))

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

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

Solution (Python):
input = input()
i = int(input)
hour = i // 3600
min = i % 3600 // 60
sec = i % 60 % 60
print(f'{hour}:{min}:{sec}')

Solution (Python):
input = input()
i = int(input)
hour = i // 3600
min = i % 3600 // 60
sec = i % 60 % 60
print(f'{hour}:{min}:{sec}')

Solution (Python):
input = input()
i = int(input)
hour = i // 3600
min = i % 3600 // 60
sec = i % 60 % 60
print(f'{hour}:{min}:{sec}')

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

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

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

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

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

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

Solution (Python):
import math
x = input()
h = math.floor(int(x) / 3600)
m = math.floor((int(x) % 3600) / 60)
s = int(x) % 60
print('%d:%d:%d'%(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):
tm = int(input())
h = int(tm / 3600)
S1 =  tm - 3600 * h
m = int(S1 / 60) 
S2 = S1 - 60 * m 
s = S2 
print(str(h)+":"+str(m)+":"+str(s))

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

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

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):
x = int(input())
a = x // 3600
b = (x - a * 3600) // 60
c = (x - a * 3600 - b * 60)
print('%d:%d:%d' % (a, b, c))

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

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

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

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

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

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

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

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

Solution (Python):
s = int(input())
s1 =  s // 3600
s2 = (s%3600) // 60
s3 = s % 60
t1 =str(s1)
t2 = str(s2)
t3 =str(s3)
print(t1+":"+t2+":"+t3)

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

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

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

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

Solution (Python):
import sys
s=int(sys.stdin.readline())

hour=s//3600
minute=(s%3600)//60
sec=s%60
print(hour,minute,sec,sep=":")

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

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

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

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

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

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

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

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

Solution (Python):


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

Solution (Python):
S = int(input())
h1 = S // 3600
m1 = (S - 3600*h1) // 60
s1 = (S - 3600*h1 - 60*m1)
h2 = str(h1)
m2 = str(m1)
s2 = str(s1)
print(h2 + ":" + m2 + ":" + s2)

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

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

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

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

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

h, hr = divmod(S, 3600)
m, mr = divmod(hr, 60)
s = mr

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

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

Solution (Python):

s = input ()
m, s = divmod (int(s), 60)
h, m = divmod (m, 60)
print ('%d:%d:%d' % (h, m, s))

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

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

print(f"{H}"+":"+f"{M}"+":"+f"{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 = input()
value = int(S)
a = value/3600
h = int(a)
b = (value-h*3600)/60
m = int(b)
c = value - h*3600 - m*60
s = int(c)
print(h, m, s, sep=":")

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

aa = a%60

a = a//60

aaa = a%60

a = a//60

print( "{0}:{1}:{2}".format(a,aaa,aa))

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

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

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

Solution (Python):

s = int(input())
h = divmod(s, 3600)
m = divmod(h[1], 60)
print(h[0], m[0], m[1], sep=":")

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

in_sec = int(input())
sec = in_sec % 60
min = ((in_sec % 3600) - sec) // 60
hour = (in_sec - in_sec % 3600) // 3600
print(hour,':',min,':',sec, sep='')

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

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

Solution (Python):

i = int(input())
hour = i // 3600
i %= 3600
minute = i // 60
i %= 60
second = i

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

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

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

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

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

if 0 <= S <= 86400:
    h = int(S / 3600)
    m = int((S % 3600) / 60)
    s = int((S % 3600) % 60)
    print(str(h) + ":" + str(m) + ":" + str(s))
else:
    print("error")

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


def main():
    S = int(raw_input())
    h = S / 3600
    m = S / 60 % 60
    s = S % 60
    print("%d:%d:%d" % (h,m,s))

if __name__ == "__main__":
    main()

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

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

Solution (Python):

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

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