数值计算

time=input()
hour=int(time)//3600
minute=int(time)//60-hour*60
second=int(time)%60
print("{} {} {}".format(hour,minute,second))