#include using namespace std; typedef long long ll; typedef pair pp; const ll INF = 1e18; const int MOD = 1000000007; #define rep(i,n) for(int i=0;i> t; while(t--){ int n; string s; cin >> n >> s; cout << (solve(n,s) ? 'O' : 'X') << endl; } return 0; }