using namespace std;
int main(int argc, char *argv[]) {
string s,ss; while(getline(cin, s)){ getline(cin,ss); std::cout<<s<<" "<<ss<<endl; } return 0;
}