#include<iostream>
using namespace std;
int main(){
int t;
cin>>t;
cout<<t/3600<<":"<<(t%3600)/60<<":"<<(t%3600)%60<<endl;
return 0;
}
#include<iostream>
using namespace std;
int main(){
int t;
cin>>t;
cout<<t/3600<<":"<<(t%3600)/60<<":"<<(t%3600)%60<<endl;
return 0;
}