#include <iostream>
using namespace std;
int main()
{
string hi;
while(1)
{
cin>>hi;
if(cin.fail()==1)//输入ctrl+Z来结束//if(cin.eof()==1)//也可以
{
cout<<"hello";
break;
}
cout<<hi;
}
return 0;
}
#include <iostream>
using namespace std;
int main()
{
string hi;
while(1)
{
cin>>hi;
if(cin.fail()==1)//输入ctrl+Z来结束//if(cin.eof()==1)//也可以
{
cout<<"hello";
break;
}
cout<<hi;
}
return 0;
}