#include <string>
#include <iostream>
using namespace std;
string s[2], t[2], b, v[] = { "..", ".#", "#.", "##" };
int n;
int main() {
	cin >> n;
	bool ok = false;
	while (!ok) {
		bool found = false;
		for (int i = 0; i < 4; i++) {
			t[0] = v[i][0] + s[0]; t[1] = v[i][1] + s[1];
			cout << t[0] << endl << t[1] << endl;
			cin >> b;
			if (b == "T" || b == "end") {
				s[0] = t[0]; s[1] = t[1];
				found = true;
				if (b == "end") ok = true;
				break;
			}
		}
		if (!found) break;
	}
	while (!ok) {
		bool found = false;
		for (int i = 0; i < 4; i++) {
			t[0] = s[0] + v[i][0]; t[1] = s[1] + v[i][1];
			cout << t[0] << endl << t[1] << endl;
			cin >> b;
			if (b == "T" || b == "end") {
				s[0] = t[0]; s[1] = t[1];
				found = true;
				if (b == "end") ok = true;
				break;
			}
		}
		if (!found) break;
	}
	return 0;
}