#include using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector VI; typedef vector VVI; #define REP(i, n) for(int(i)=0;(i)<(n);++(i)) #define FOR(i, f, t) for(int(i)=(f);(i)<(t);(++i)) #define RREP(i, n) for(int(i)=(n)-1;(i)>=0;--(i)) const int MOD = int(1e9+7); int N,M,W,H; int res = 0; /* bool solve(string &s){ reverse(s.begin(), s.end()); int n = s.size(); REP(j,n){ if(s[j] == 'R'){ s[j] = '_'; int k = j+1; bool f = false; for(;k> N; REP(i,N){ string s; cin >> s; cout << (solve(s)?"possible":"impossible") << endl; } return 0; }