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

int main() 
{
	while(!cin.eof())
	{
		string tmp;
		getline(cin, tmp);
		stringstream str;
		str << tmp;

		char op;
		int a, b;
		bool readB = false;
		
		str >> op >> a;
		if (str >> b) readB = true;

		cout << op << ' ' << a;
		if (readB) cout << ' ' << b;
		cout << '\n';
	}	
}