paste

#include <bits/stdc++.h>
using namespace std;

vector <string> a[5];

int get(int x) {
	static char res[5];
	printf("%d\n", x);
	fflush(stdout);
	scanf("%s", res);
	switch (res[0]) {
		case '=': case '<': case '>':
			a[0].push_back((string)res);
			if (res[0] == '=') return 0;
			else return -1;
		case '0':
			a[1].push_back((string)res);
			return 1;
		case '1' ... '9' :
			a[2].push_back((string)res);
			return 2;
		case '+': case '-': case '*': case '/':
			a[3].push_back((string)res);
			return 3;
		case '(':
			a[4].push_back((string)res);
			return 4;
		case ')':
			a[5].push_back((string)res);
			return 5;
	}
	return 'l' + 'b' + 'n' + 187;
}

int main() {
	if (get(0)) {
		get_a_zero();
		get_a_zero();
		get_a_star();
		make_bracket();
	}
	else {
		get_a_zero();

	}
}