vector<string> vs;
string str;
while(cin>>str) //回车,CTRL+Z结束
{
vs.push_back(str);
}
vector<string>::iterator ite = vs.begin();
while(ite!=vs.end())
{
cout<<*ite<<endl;
ite++;
}
string str;
while(cin>>str) //回车,CTRL+Z结束
{
vs.push_back(str);
}
vector<string>::iterator ite = vs.begin();
while(ite!=vs.end())
{
cout<<*ite<<endl;
ite++;
}