# include<iostream> using namespace std; int main(){ int s,f,i,d; cin>>s; i=s/3600; f=s%3600/60; d=s%60; cout<<i<<" "<<f<<" "<<d; return 0; }