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