#include <iostream>
using namespace std;
int main()
{
int a;
cin>>a;
int arr[] = {3600,60,1};
for (int i=0;i<3;++i)
{
if (i==2)
{
printf("%d",a/arr[i]);
}
else
{printf("%d:",a/arr[i]);}
a%=arr[i];
}
}