#include <iostream> using namespace std; int main(){ int n; cin>>n; int a=0,b=0,c=0; if((n/3600)!=0){ a=n/3600; n=n%3600; } if((n/60)!=0){ b=n/60; n=n%60; } c=n; cout<<a<<":"<<b<<":"<<c; }