#include<iostream>
using namespace std;
class Time
{
public:
void sltime();
void sctime();
private:
int hour;
int minute;
int sec;
};
void Time::sltime()
{
cin>>hour ;
cin>>minute ;
cin>>sec ;
}
void Time::sctime()
{
cout<<hour <<":"<<minute <<":"<<sec <<endl;
}
int main()
{
Time t;
t.sltime() ;
t.sctime();
return 0;
}