#include <iostream> using namespace std; int main() { int n; cin>>n; 1<=n<=1000000; printf("%d:%d:%d",n/3600,n%3600/60, n%60); return 0; }