#include <iostream> #include <string> #include <cstdio> #include <cmath> using namespace std; int main() { int n,a,b,c; cin>>n; a=n/3600; n%=3600; b=n/60; n%=60; c=n; cout<<a<<':'<<b<<':'<<c<<endl; return 0; }