#include <iostream>
using namespace std;
/*TIME a; // 时间 a 初始化为 0:0:0
TIME b(8, 25, 9); // 时间 b 初始化为 8:25:9
设计 Input 和 Output 函数用于输入和输出时间
TIME a;
a.Input(); // 输入: 18:4:36
a.Output(); // 输出: 18:4:36
设计 Set 和 Get 函数用于设置和读取时间
TIME a;
int h, m, s;
a.Set(5, 24, 59);
a.Get(h, m, s);
cout << h << ' ' << m << ' ' << s << endl; // 输出: 5 24 59*/
/* 你提交的代码将被嵌在这里 */
class TIME{
public:
TIME(int h0=0,int m0=0,int s0=0):h(h0),m(m0),s(s0){}
void Input(){
char c;
cin>>h>>c>>m>>c>>s;
}
void Output(){
cout<<h<<":"<<m<<":"<<s<<endl;
}
private:
int h,m,s;
};
int main()
{
TIME a;
a.Input();
a.Output();
cout << endl;
return 0;
}
