#include #include #include using namespace std; int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); string S; cin >> S; int east = 0; int west = 0; for(int i=0;i= 3 || east >= 3) break; } if(east >= 3){ cout << "East" << endl; }else if(west >= 3){ cout << "West" << endl; }else{ cout << "NA" << endl; } return 0; }