include<bits/stdc++.h> using namespace std; int main(){ n; cin>>n; cout<<n/600<<":"<<n%600/60<<":"<<n%600%60; }