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

int main() {
    int n;
    string s1, s2;
    cin >> n;
    
    char c[3] = {'.', '#'};
    
    string res;
    while (res != "end") {
        char tes[3];
        bool ok = 0;
        for (int i=0; i<2; i++) for (int j=0; j<2; j++) {
            if (ok) break;
            cout << s1 + c[i] << "\n" << s2 + c[j] << "\n"; fflush(stdout);
            cin >> res;
            if (res == "end") return 0;
            if (res == "T") ok = 1, tes[0] = c[i], tes[1] = c[j];
        }
        
        if (ok) s1 += tes[0], s2 += tes[1];
        else break;
    }
    
    
    while (res != "end") {
        char tes[3];
        bool ok = 0;
        for (int i=0; i<2; i++) for (int j=0; j<2; j++) {
            if (ok) break;
            cout << (string)"" + c[i] + s1 << "\n" << (string)"" + c[j] + s2 << "\n"; fflush(stdout);
            cin >> res;
            if (res == "end") return 0;
            if (res == "T") ok = 1, tes[0] = c[i], tes[1] = c[j];
        }
        
        if (ok) s1 = (string)"" + tes[0] + s1, s2 = (string)"" + tes[1] + s2;
        else break;
    }
    return 0;
}