#include <iostream>
using namespace std;
struct Data {
int year, month, day;
};
struct Person {
char name[20];
Data birthday;
};
int main() {
Person p;
cin >> p.name;
cin >> p.birthday.year >> p.birthday.month >> p.birthday.day;
cout << p.name << endl;
cout << p.birthday.year << "년 " << p.birthday.month << "월 " << p.birthday.day << "일" << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: