#include <iostream>
using namespace std;
int main()
{
char s[150];
while (true)
cin.getline(s,100);
cout << s << " " << s << endl;
}
return 0;