#include <cstdio>
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <ctime>
#include <cmath>
#include <string>
#include <cstring>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <map>
#include <set>
using namespace std;
const int INF=0x3f3f3f3f;
const double eps=1e-10;
const double PI=acos(-1.0);
#define maxn 500
class Clock
{
public:
Clock(int h = 8, int m = 16, int s = 24)
{
hour = h; minute = m; second = s;
};
void Show()
{
cout<<hour<<":"<<minute<<":"<<second<<endl;
}
void Set(int h, int m, int s)
{
hour = h; minute = m; second = s;
}
private:
int hour;
int minute;
int second;
};
int main()
{
Clock c1, c2(12, 25, 38);
c1.Show();
c2.Show();
c1.Set(23,59,59);
c1.Show();
return 0;
}
public class Clockhelp {
private int hour, minute,second;
public Clockhelp()
{
hour =13; minute = 45; second =65;
}
public Clockhelp(int h, int m, int s ){
hour = h; minute = m; second = s;
}
public void Show()
{
System.out.println(hour+":"+minute+":"+second);
}
public void Set(int h, int m, int s)
{
hour = h; minute = m; second = s;
}
}
public class Clock {
public static void main(String[] args) {
// TODO Auto-generated method stub
Clockhelp c1 = new Clockhelp();
Clockhelp c2 = new Clockhelp(12, 25, 38);
c1.Show();
c2.Show();
c1.Set(23,59,59);
c1.Show();
}
}