#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
long time;
cin >> time;
int hour, minute, second;
int result;
hour = time / 3600;
result = time % 3600;
minute = result / 60;
second = result % 60;
cout << hour <<":" << minute << ":" << second;
return 0;
}