#include <iostream>
using namespace std;
class Date;
class Time
{
private:
int hour;
int minute;
int second;
public:
Time (int h,int m,int s):hour(h),minute(m),second(s){}
void display(const Date &);
};
class Date
{
private:
int year;
int month;
int day;
public:
Date (int y,int m,int d):year(y),month(m),day(d){}
friend class Time;
};
void Time::display( const Date &d)
{
cout<<d.year<<"/"<<d.month<<"/"<<d.day<<endl;
cout<<hour<<":"<<minute<<":"<<second<<endl;
}
int main()
{
int year,month,day;
cin>>year>>month>>day;
Date d1(year,month,day);
int hour,minute,second;
cin>>hour>>minute>>second;
Time t1(hour,minute,second);
t1.display(d1);
return 0;
}
#include using namespace std;class Date;class Time{ private: int hour; int minute; int second; public: Time (int h,int m,int s):hour(h),minute(m),second(