#include using namespace std; #define int long long templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> t; while(t--){ int n; string s; cin >> n; cin >> s; bool f = false; f |= s.find("ooo") != string::npos; f |= s.find("oo-") != string::npos; f |= s.find("-oo") != string::npos; f |= s.find("o-o") != string::npos; f |= s.find("--o-") != string::npos; f |= s.find("-o--") != string::npos; cout << (f ? "O" : "X") << endl; } return 0; }