#include <iostream> using namespace std; int main() { int n,s,f,m; cin>>n; s=n/3600; m=n%3600; f=m/60; m=m%60; cout<<s<<":"<<f<<":"<<m; return 0; }