#include<cstdio>
#include<cstdlib>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
  int n;
  char s1[501],s2[501];
  scanf("%d",&n);
  int x = 200;
  while(true){
    bool flag = true;
    for(int i=0;i<4;i++){
      char res[3];
      if(i==0){
        s1[x] = '.';
        s2[x] = '.';
      }else if(i==1){
        s1[x] = '#';
        s2[x] = '.';
      }else if(i==2){
        s1[x] = '.';
        s2[x] = '#';
      }else if(i==3){
        s1[x] = '#';
        s2[x] = '#';
      }
      s1[x+1] = '\0';
      s2[x+1] = '\0';
      printf("%s\n%s\n", s1+200, s2+200); fflush(stdout);
      scanf("%s",res);
      if(res[0]=='T'){
        flag = false;
        x++;
        break;
      }
    }
    if(flag){
      s1[x] ='\0';
      s2[x] ='\0';
      break;
    }
  }
  x = 199;
  while(true){
    bool flag = true;
    for(int i=0;i<4;i++){
      char res[3];
      if(i==0){
        s1[x] = '.';
        s2[x] = '.';
      }else if(i==1){
        s1[x] = '#';
        s2[x] = '.';
      }else if(i==2){
        s1[x] = '.';
        s2[x] = '#';
      }else if(i==3){
        s1[x] = '#';
        s2[x] = '#';
      }
      printf("%s\n%s\n", s1+x, s2+x); fflush(stdout);
      scanf("%s",res);
      if(res[0]=='T'){
        flag = false;
        x--;
        break;
      }
    }
    if(flag) break;
  }
  return 0;
}
