#include using namespace std; typedef long long ll; typedef long double ld; #define rep(i,n) for (int i = 0; i < (n); ++i) templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> s; int n=s.size(); rep(i,n-2){ if(s[i]==s[i+1]&&s[i+1]==s[i+2]){ cout << (s[i]=='O'?"East":"West") << endl; return 0; } } cout << "NA" << endl; }