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