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