#include <bits/stdc++.h> using namespace std; int main(){ int sum; cin>>sum; cout<<sum/60/60<<" "<<sum/60%60<<" "<<sum%60; }