#include <iostream>
#include <string>
using namespace std;
// 循环输入字符串
int main()
{
string str;
while(cin>>str){
if(str=="exit"){
break;
}
cout<<str<<endl;
}
return 0;
}
#include <iostream>
#include <string>
using namespace std;
// 循环输入字符串
int main()
{
string str;
while(cin>>str){
if(str=="exit"){
break;
}
cout<<str<<endl;
}
return 0;
}