i = int(input())
a= i // 3600
b = ((i%3600)//60)
c = ((((i%3600)%60)))
print(a,b,c)

我这个就属于笨办法了,一步一步的除下来