#include<bits/stdc++.h> using namespace std; int main(){ int s; cin>>s; int a,b,c; a=s/3600; b=s%3600/60; c=s%3600%60; cout<<a<<":"<<b<<":"<<c; }