#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main()
{
	ifstream in("file.txt");
	string word;
	while (in >> word) cout << word << endl;
}