s=int(input()) a=int(s/3600) z=s%3600 b=int(z/60) c=b%60 print(a,b,c)
------Input------ 602 ------Answer----- 0 10 2------Your output----- 0 10 10