#include<iostream>
using namespace std;
class Time
{
private:
int hour;
int minute;
int second;
public:
Time(int h = 0,int m = 0,int s = 0):hour(h),minute(m),second(s){}
void set_time();
void show_time();
};
void Time::set_time()
{
cin>>hour>>minute>>second;
}
void Time::show_time()
{
printf("%02d:%02d:%02d",hour,minute,second);
}
int main()
{
Time t1;
cout<<"输入时分秒:";
t1.set_time();
cout<<"输出时分秒:";
t1.show_time();
Time t2;
cout<<endl<<"输入时分秒:";
t2.set_time();
cout<<"输出时分秒:";
t2.show_time();
return 0;
}