#include <string>
#include<iostream>
using namespace std;
class Date{
private:
int year;
int month;
int day;
public:
Date(int a,int b,int c)
{
year=a;
month=b;
day=c;
}
void Show();
};
void Date::Show(){
cout<<year<<"年"<<month<<"月"<<day<<"日"<<endl;
}
int main(){
int a,b,c;
int a1,b1,c1;
cin>>a>>b>>c;
cin>>a1>>b1>>c1;
Date d(a,b,c);
cout<<"原日期"<<endl;
d.Show();
Date d1(a1,b1,c1);
cout<<"修改后日期"<<endl;
d1.Show();
}