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

Solution (Python):
num =raw_input()
num = int(num)
h = num/3600
m = (num-h*3600)/60
s = num-h*3600-m*60
h,m,s = map(str,(h,m,s))
print h+':'+m+':'+s

Solution (Python):
time = int(input())
if time != 0:
  h = time // 3600
  time = time % 3600
  m = time // 60
  s = time % 60
  print(str(h) + ':' + str(m) + ':' + str(s))
else:
  print('0:0:0')

Solution (Python):

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

Solution (Python):

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

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

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

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

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

Solution (Python):
import sys
S = int(sys.stdin.readline())
h = int(S / 60 / 60)
m = int(S % 3600 / 60)
s = S % 60
print("%d:%d:%d" % (h, m, s))

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

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

Solution (Python):


second = int(input())
hour = second // 3600
minutes = (second // 60) % 60
second %= 60
print("%s:%s:%s" %(hour,minutes,second))

Solution (Python):


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

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

Solution (Python):



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

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

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

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

Solution (Python):
t=int(raw_input())
def sec(t):
	s= t%60
	return s
def mi(t):
	m= t//60
	while m>=60:
		m=m-60
	return m
def hr(t):
	h= t//3600
	return h
print "%d:%d:%d" % (hr(t),mi(t),sec(t))

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

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

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

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

Solution (Python):
class itp1_1d:
    def cal(self,time):
        h=time/3600
        time%=3600
        m=time/60
        time%=60
        s=time
        print str(h)+":"+str(m)+":"+str(s)
if __name__=="__main__":
    time=input()
    run=itp1_1d()
    run.cal(time)

Solution (Python):
import sys

x = int( sys.stdin.readline() )
h = x//3600
m = ( x%3600 )//60
s = ( x%3600 )%60
print( "{}:{}:{}".format( h, m, s) )

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

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

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

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

Solution (Python):


x = input()
a = x/3600
b = (x%3600)/60
c = (x%3600)%60
print str(a)+":"+str(b)+":"+str(c)

Solution (Python):
n = int(input())
m, sec = divmod(n, 60)
hr, m = divmod(m, 60)
print(hr, m, sec, sep=':')

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

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

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

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

Solution (Python):



import sys

def time(s):
    h = s / 3600
    m = (s - (h * 3600)) / 60
    s = (s - (h * 3600)) - (m * 60)
    h, m, s = map(str, (h, m, s))
    print "%s:%s:%s" % (h, m, s)

s = int(raw_input())

if 0 <= s <= 86400:
    time(s)
else:
    sys.exit(0)

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

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

Solution (Python):

 
uSec = 1
uMinute = 60 * uSec
uHour = 60 * uMinute
 
input_secs = int(raw_input().rstrip())
 
h = input_secs / uHour
m = (input_secs - h * uHour) / uMinute
s = (input_secs - h * uHour - m * uMinute) / uSec
 
print ':'.join([str(x) for x in [h, m, s]])

Solution (Python):
if __name__ == "__main__":
    t0 = int(raw_input())
    h = t0 / 60 / 60
    t1 = t0 - ( h * 60 * 60 )
    m = t1  / 60
    s = t1 - ( m * 60 )
    print "{0}:{1}:{2}".format(h,m,s)

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

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

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

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

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

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

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

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

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

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

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

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

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

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


base = s // 60

print('{}:{}:{}'.format(base // 60, base%60, s%60))

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

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

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

Solution (Python):

val = int(raw_input())
hour = 0
minute = 0

while 59 < val:
  if 59 < val:
    minute += 1
  if 59 < minute:
    minute = 0
    hour += 1
  val -= 60

print("%d:%d:%d" % (hour, minute, val))

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

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

Solution (Python):
import sys
S = int(sys.stdin.readline())
h = int(S / 60 / 60)
m = int(S % 3600 / 60)
s = S % 60
print("%d:%d:%d" % (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
s = S % 60 
print(h, m, s, sep=':')

Solution (Python):
import sys
prm = sys.stdin.readline()
S = int(prm)
h = S / (60 * 60);
S = S % (60 * 60);
m = S / 60;
s = S % 60;
print str(h)+':'+str(m)+':'+str(s)

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

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

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

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

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

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

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

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

q1, r = divmod(r, 3600)
q2, r = divmod(r, 60)

print("{0}:{1}:{2}".format(q1, q2, r))

Solution (Python):
s_time = input()

print(str(s_time//60//60) + ":" + str(s_time // 60 % 60) + ":" + str(s_time % 60))

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

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

print str(h) + ":" + str(m) + ":" + str(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):
data = input()
sec = int(data)

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

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

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

Solution (Python):
import sys

sec_1 = sys.stdin.readline()

sec_1 = int(sec_1)

hour = sec_1 / 3600

min = sec_1 / 60 - hour * 60

sec = sec_1 % 60

print '%d:%d:%d' % (hour, min, sec)

Solution (Python):
import sys

sec_1 = sys.stdin.readline()

sec_1 = int(sec_1)

hour = sec_1 / 3600

min = sec_1 / 60 - hour * 60

sec = sec_1 % 60

print '%d:%d:%d' % (hour, min, sec)

Solution (Python):
import sys

sec_1 = sys.stdin.readline()

sec_1 = int(sec_1)

hour = sec_1 / 3600

min = sec_1 / 60 - hour * 60

sec = sec_1 % 60

print '%d:%d:%d' % (hour, min, sec)

Solution (Python):
import sys

input_sec = sys.stdin.readline()

input_sec = int(input_sec)

hour = input_sec / 3600

minute = (input_sec % 3600) / 60

second = input_sec % 60

print "%d:%d:%d" % (hour, minute, second)

Solution (Python):
import sys

line = sys.stdin.readline()
s = int(line) % 60
i = int(line) / 60
m = i % 60
h = i /60
print str(h) + ":" + str(m) + ":" + str(s)

Solution (Python):
s = input()
hour = 3600
minite = 60
h = 0
m = 0

h = s / hour
m = (s - h * hour) / minite
s  = s - h * hour - m * minite

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

Solution (Python):
S = raw_input()
S = int(S)
if S/3600 > 0:
    h = S/3600
else: h = 0
if (S % 3600) / 60 > 0:
    m = (S % 3600) / 60
else: m = 0
if (S % 3600) % 60 > 0:
    s = (S % 3600) % 60
else: s = 0
h= str(h)
m= str(m)
s= str(s)

print h + ':' + m + ':' + s

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

s = t % 60
t //= 60
m = t % 60
t //= 60
h = t

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

Solution (Python):
num_time = int(raw_input())
x = []
num_z = num_time/3600
num_h = (num_time%3600)/60
num_b = (num_time%3600)%60
x.append(num_z)
x.append(num_h)
x.append(num_b)
x = map(str, x)
print ":".join(x)

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

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

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

Solution (Python):


S = raw_input()

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

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

Solution (Python):
x = input()

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

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

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

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

m,s = divmod(target,60)
if m == 0:
    print("0:0:%d" % s)
else:
    h, m = divmod(m,60)
    print("%d:%d:%d" % (h,m,s))

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

Solution (Python):
s = int(raw_input())
h = s / 3600
tmp = s % 3600
m = tmp / 60
s = tmp %60
time = map(str,[h,m,s])
print time[0]+":"+time[1]+":"+time[2]

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

Solution (Python):



var = int(raw_input())

h = str(var / 3600)
ms = var % 3600
m = str(ms / 60)
s = str(ms % 60)

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

Solution (Python):


input = input()

second = input % 60
minute = input / 60 % 60
hour = input / 60 / 60 % 60

print(":".join(map(str, (hour, minute, second))))

Solution (Python):
num = int(raw_input())
hour = num / (60 * 60)
minute = (num % (60 * 60)) / 60
second = num % 60

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

Solution (Python):



raw_time = int(raw_input())

if 0 <= raw_time < 86400:
    hour = raw_time / 3600
    minute = (raw_time - hour * 3600) / 60
    second = (raw_time - hour * 3600 - minute * 60)
    print("%d:%d:%d") % (hour, minute, second)

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

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

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

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

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

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

Solution (Python):
L=[]
s=int(raw_input())
L+=divmod(s,3600)
L+=divmod(L[1],60)
print ("{0}:{1}:{2}").format(L[0],L[2],L[3])

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

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

Solution (Python):
in_sec = int(raw_input())
sec = in_sec%60
in_sec = (in_sec-sec)/60
min = in_sec%60
h = (in_sec-min)/60
print str(h) + ":" + str(min) + ":" + str(sec)

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

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

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

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

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

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

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

Solution (Python):
from math import *
PI = 3.1415926535898
while True:
    try:
        t = input()
        ans = ""
        ans += str(t/(60*60))
        t %= 60*60
        ans += ":"
        ans += str(t/60)
        t %= 60
        ans += ":"
        ans += str(t)
        print ans
    except EOFError:
        break

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

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

Solution (Python):
import sys

S = int(sys.stdin.readline())
h = S / 3600
m = (S - h*3600)/60
s = S - h*3600 - m*60
print("%d:%d:%d" % (h,m,s))

Solution (Python):
import sys

line = sys.stdin.readline()
inp = int(line)

h,mod = inp//3600, inp%3600
m,mod = mod//60, mod%60
s = mod

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

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

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

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

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

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

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

Solution (Python):
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 = int(s // (60 * 60))
s = s - h * (60 * 60)

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

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

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

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

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

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

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

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

Solution (Python):
h= 0
m = 0
s = int(raw_input())

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

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

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

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

Solution (Python):
S = input()
if S >= 0 and S <= 86400:
   a = S // 3600
   b = S % 3600
   c = b // 60
   d = b % 60
   print "%d:%d:%d" % (a, c, d)

Solution (Python):
TimeS = int(raw_input())
TimeM = TimeS / 60
sec = TimeS % 60
hou = TimeM / 60
min = TimeM % 60

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

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

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

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

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

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

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

Solution (Python):
a = input()

s = a % 60
a = (a - s) / 60
m = a % 60
a = (a - m) / 60
h = a

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

Solution (Python):
s=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 = raw_input()
S = int(S)

h = S / 3600
m = (S - h * 3600) / 60
s = S - 3600 * h - 60 * m
 
print u"%d:%d:%d" % (h,m,s)

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

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

Solution (Python):
b = int(raw_input())
a = b/60
h = a/60
t = a%60
s = b%60
print'%d:%d:%d'%(h,t,s)

Solution (Python):
b = int(raw_input())
a = b/60
h = a/60
t = a%60
s = b%60
print'%d:%d:%d'%(h,t,s)

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

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

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

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

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

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

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

Solution (Python):
raw_time = int(raw_input())
 
if 0 <= raw_time < 86400:
    hour = raw_time / 3600
    minute = (raw_time - hour * 3600) / 60
    second = (raw_time - hour * 3600 - minute * 60)
    print("%d:%d:%d") % (hour, minute, second)

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

s = sa % 60
ma = sa / 60
m = ma % 60
h = ma / 60

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

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

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

Solution (Python):
raw_time = int(raw_input())
 
if 0 <= raw_time < 86400:
    hour = raw_time / 3600
    min = (raw_time - hour * 3600) / 60
    sec = (raw_time - hour * 3600 - min * 60)
    print("%d:%d:%d")%(hour, min, sec)

Solution (Python):


x=input()

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

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

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

Solution (Python):
import math
s = int(input())
h = math.floor(s / 3600)
tmp = s % 3600
m = math.floor(tmp / 60)
s = tmp % 60
a = [h,m,s]
print(":".join(list(map(str, a))))

Solution (Python):
x = input()
a = x/3600
b = x%3600/60
c = x - a*3600 - b*60
print '%d:%d:%d'%(a, b, c)

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

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

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

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

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

Solution (Python):
S = int(raw_input())
h = S/3600
S = S%3600
m = S/60
S = S%60
print "%d:%d:%d" % (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):
a = int(raw_input().strip())
print str(a/3600) + ":" + str(a%3600/60) + ":" + str(a%60)

Solution (Python):
time=input()
h=0
m=0
s=0
while time>=3600:
	time-=3600
	h+=1
while time>=60:
	time-=60
	m+=1
while time>0:
	time-=1
	s+=1
print u"%d:%d:%d" % (h,m,s)

Solution (Python):
import sys

num = map(int,raw_input().split())

h = num[0]/3600
m = (num[0] - (3600 * h)) / 60
s = (num[0] - (3600 * h + (60 * m)))
print str(h)+":"+str(m)+":"+str(s)

Solution (Python):


x = raw_input()



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

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

Solution (Python):


def sec2watch(S):
    """
    input S (sec)
    return "h:m:s"

    >>> sec2watch(46979)
    '13:2:59'

    >>> sec2watch(59)
    '0:0:59'
    >>> sec2watch(119)
    '0:1:59'
    >>> sec2watch(619)
    '0:10:19'

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

    return ":".join(map(str,(h,m,s)))


if __name__ == '__main__':
    S = raw_input()
    print sec2watch(S)

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

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

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

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

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

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

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

Solution (Python):


s = 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(input());print('%d:%d:%d'%(s/3600,s%3600/60,s%60))

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

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

print h + ":" +m+ ":" +s

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

Solution (Python):
S = int(input())
s = S % 60
m = S//60%60
h = S//3600
print(str(h) + ':' + str(m) + ':' + str(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):
S = input()
if S >= 0 and S <= 86400:
   a = S // 3600
   b = S % 3600
   c = b // 60
   d = b % 60
   print "%d:%d:%d" % (a, c, d)

Solution (Python):
input = int(input())
if 0 <= input < 86400:
    hour = input / 3600
    minute = (input / 60) % 60
    second = input % 60
    print("%d:%d:%d" % (hour,minute,second))

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

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

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):
class Watch:
    def __init__(self, S):
        h = S / 3600 
        m = S % (60 * 60) / 60
        s = S - h * 3600 - m * 60
        print "%(h)d:%(m)d:%(s)d" % {'h':h, 'm':m, 's':s}

if __name__ == "__main__":
    S = int(raw_input())
    w = Watch(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

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

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

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

Solution (Python):


s = input()

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

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

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

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

Solution (Python):
q = input()
ans_s = q % 60
ans_m = ((q - ans_s)/60) % 60
ans_h = ((q - ans_s)/60 - ans_m) / 60
print("%d:%d:%d" % (ans_h,ans_m,ans_s))

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

Ss = S % 60
Sm = ((S - Ss) // 60) % 60
Sh = ((S - Ss) // 60) // 60
print('%d:%d:%d' % (Sh,Sm,Ss))

Solution (Python):

I=input()
ans=''
s=I%60
a=(I-s)/60

m=a%60
b=a-m
h=b/60
ans+=str(h)
ans+=':'
ans+=str(m)
ans+=':'
ans+=str(s)
print ans

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

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

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

def calc_min(sec):
    s = sec
    min = s / 60
    cal = min

    if min >= 59:
        houre = min / 60
        houre = int(houre) * 60
        min = min - houre

    return [min, cal]

def calc_hour(min):
    m = min
    houre = m / 60

    return int(houre)

def calc_sec(min, input_time):
    m = min
    t = input_time
    sec = t - (m * 60)
    return sec

while True:
    ss = input()

    if ss >= 0 and ss < 86400:
        break

c_min = calc_min(ss)[0]
c_houre = calc_hour(calc_min(ss)[1])
c_sec = calc_sec(calc_min(ss)[1], ss)

print(str(c_houre) + ":" + str(c_min) + ":" + str(c_sec))

Solution (Python):

S = int(input())

h =S//3600
S = S%3600

m = S//60
S = S%60

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