r=input() r=int(r) a=int(r/3600) b=int(r/60) c=int(r%100) print(a,b,c)
------Input------ 229 ------Answer----- 0 3 49------Your output----- 0 3 29