#include <fstream>
#include <string>
#include <iostream>
using namespace std;
int main()
{
ifstream ifile;
ifile.open("in.txt");
ofstream ofile;
ofile.open("out.txt",ofstream::app);
string str;
while(ifile>>str)ofile<<str<<endl;
ifile.close();
ofile.close();
return 0;
}