#include <bits/stdc++.h> using namespace std; int main (){ int a,b,c,d; cin>>a; b=a/60/60; c=a/60; d=a%60; cout<<b<<" "<<c<<" "<<d; return 0; }