#include<bits/stdc++.h>
using namespace std;
int query(string s1,string s2){
  cout << s1 << "\n" << s2 << endl;
  string a;cin>>a;
  if(a=="T") return 0;
  if(a=="F") return 1;
  return -1;
}
int main(){
  int n,i,j,k;cin>>n;
  string s1,s2;
  string a1[]={".",".","#","#"},a2[]={".","#",".","#"};
  bool f;
  while(1){
    f=false;
    for(i=0;i<4;i++){
      k=query(s1+a1[i],s2+a2[i]);
      if(k==-1) return 0;
      if(k==0){
	s1+=a1[i];
	s2+=a2[i];
	f=true;
	break;
      }
    }
    if(f) continue;
    break;
  }
  while(1){
    f=false;
    for(i=0;i<4;i++){
      k=query(a1[i]+s1,a2[i]+s2);
      if(k==-1) return 0;
      if(k==0){
	s1=a1[i]+s1;
	s2=a2[i]+s2;
	f=true;
	break;
      }
    }
    if(f) continue;
    break;
  }
  return 0;
}
