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