#include<bits/stdc++.h> using namespace std; int main() { int t,s,f,m; cin>>t; s=t/3600; f=t%3600/60; m=t%60; cout<<s<<" "<<f<<" "<<m; return 0; }