#include <iostream> using namespace std; int main(){ int h,m,x,s; cin>>x; h=x/3600; m=(x-h*3600)/60; s=x%60; cout<<h<<" "<<m<<" "<<s; return 0; }