Problem: There is a long blackboard with 2 rows and N columns in a classroom of Kyoto University. This blackboard is so long that it is impossible to tell which cells are already used and which unused.

Recently, a blackboard retrieval device was installed at the classroom. To use this device, you type a search query that forms a rectangle with 2 rows and any length of columns, where each cell is used or unused. When you input a query, the decive answers whether the rectangle that corresponds to the query exists in the blackboard. Here, for a rectangle that corresponds to a search query, if two integer i, j ( i < j ) exist and the rectangle equals to the partial blackboard between column i and j , the rectangle is called a sub-blackboard of the blackboard.

You are currently preparing for a presentation at this classroom. To make the presentation go well, you decided to write a program to detect the status of the whole blackboard using the retrieval device. Since it takes time to use the device, you want to use it as few times as possible.

The status of the whole blackboard is already determined at the beginning and does not change while you are using the device.



Input

The first input is given in the following format:


N


N (1 \leq N \leq 100) is an integer that represents the length of the blackboard.

After this input value, your program must print search queries. A search query has the following format.


s_1
s_2


Here, s_1 represents the upper part of the blackboard and s_2 represents the lower. `#` in s_1 and s_2 represents the cell is already used and `.` represents the cell is still unused. The lengths of s_1 and s_2 are arbitrary, but they must be the same. Make sure to insert a line break at the end of the lines.

Every time your program prints a search query, a string that represents the search result of the device is returned in the followin format.


r


r is either `T` or `F` . The meaning of each character is as follows.

* `T` represents that the sub-blackboard that corresponds to the search query exists in the blackboard.
* `F` represents that the sub-blackboard that corresponds to the search query does not exist in the blackboard.



If the search query equals to the whole blackboard or the number of the search queries exceeds the limit, string `end` is given instead of r . Once you receive this string, exit your program immediately. If your program prints the whole blackboard as a search query before exceedin the limit, it is judged as Accepted. Note that the search query that represents the whole blackboard is also counted as the number of search queries.

Example

Input




Output

Solution (in CPP):

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

typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef pair<LL, LL> PLL;

#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define EB emplace_back
#define MP make_pair
#define SZ(a) int((a).size())
#define SORT(c) sort((c).begin(),(c).end())

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

#define FF first
#define SS second
template<class S, class T>
istream& operator>>(istream& is, pair<S,T>& p){
  return is >> p.FF >> p.SS;
}

const double EPS = 1e-10;
const double PI  = acos(-1.0);
const LL MOD = 1e9+7;

bool query(VS& vs){
  cout << vs[0] << endl << vs[1] << endl;
  char c; cin >> c;
  return c == 'T';
}

int main(){
  cin.tie(0);
  ios_base::sync_with_stdio(false);

  int N; cin >> N;
  int len = 0;
  string ch = ".#";
  VS vs(2);
  bool up = true;
  while(up && len < N){
	up = false;
	VS qs = vs;
	qs[0] += "x";
	qs[1] += "x";
	REP(i,2) REP(j,2){
	  qs[0][len] = ch[i];
	  qs[1][len] = ch[j];
	  if(query(qs)){
		i = j = 2;
		vs = qs;
		++len;
		up = true;
	  }
	}
  }

  up = true;
  while(up && len < N){
	up = false;
	VS qs(2);
	qs[0] = "x" + vs[0];
	qs[1] = "x" + vs[1];
	REP(i,2) REP(j,2){
	  qs[0][0] = ch[i];
	  qs[1][0] = ch[j];
	  if(query(qs)){
		i = j = 2;
		vs = qs;
		++len;
		up = true;
	  }
	}
  }
  
  return 0;
}