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