#include<iostream>
using namespace std;
class time
{
public:
void set_time(void);
void show_time(void);
private:
int hour;
int minuter;
int sec;
};
time t1;
void set_time(void);
void show_time(void);
int main()
{
t1.set_time();
t1.show_time();
return 0;
}
void time::set_time(void)
{
cin>>t1.hour;
cin>>t1.minuter;
cin>>t1.sec;
}
void time::show_time(void)
{
cout<<t1.hour<<":"<<t1.minuter<<":"<<t1.sec<<endl;
}
using namespace std;
class time
{
public:
void set_time(void);
void show_time(void);
private:
int hour;
int minuter;
int sec;
};
time t1;
void set_time(void);
void show_time(void);
int main()
{
t1.set_time();
t1.show_time();
return 0;
}
void time::set_time(void)
{
cin>>t1.hour;
cin>>t1.minuter;
cin>>t1.sec;
}
void time::show_time(void)
{
cout<<t1.hour<<":"<<t1.minuter<<":"<<t1.sec<<endl;
}