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