#include <iostream>  
using namespace std;  
int main(){  
   int n;
   cin>>n;
   int a = n / 3600;
   int b = n % 3600 / 60;
   int c = n % 3600 % 60;
   if(a < 10){ 
      cout<<"0"<<a<<":";
   }else{ 
      cout<<a<<":";
   }
   if(b < 10){ 
      cout<<"0"<<b<<":";
   }else{ 
      cout<<b<<":";
   }
   if(c < 10){ 
      cout<<"0"<<c<<endl;
   }else{ 
      cout<<c<<endl;
   }
   return 0;  
} 
/**************************************************************
	Problem: 1081
	User: admin
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/