s=int(input('Input the number of seconds:'))
h=s//3600
m=(s-h*3600)//60
t=s%3600
print('{}:{}:{}'.format(h,m,t))
time = int(input())
hour = time // 60 // 60
minute = time // 60 % 60
second = time % 60
printf("{}:{}:{}".format(hour, minute, second))