#include <iostream>
#include <string>

using namespace std;

int main()
{
	int n;
	string s;

	while(cin >> n)
		cout << n << ' ';
	
	cin.clear(); // сбрасываем ошибку в cin
	cin.sync(); // убираем из cin лишнее
	cin >> n;
	cout << '\n' << n << '\n';

	return 0;
}