#include<iostream> using namespace std; int main(){ int a,b,c,x; cin>>x; a=x/3600; b=x%3600/60; c=x%3600%60; cout<<a<<" "<<b<<" "<<c; return 0; }