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