#include <bits/stdc++.h>
using namespace std;
int p;
int main()
{
cin>>p;
int a=p/3600;
p=p-a*3600;
int b=p/60;
int c=p%60;
cout<<a<<":"<<b<<":"<<c;
}
#include <iostream>
using namespace std;
int main()
{
int t;
cin >> t;
int h = t / 3600;
int m = (t % 3600) / 60;
int s = (t % 3600) % 60;
cout << h << ":" << m << ":" << s << endl;
return 0;
}