#include #include #include using namespace std; int main() { int x[128]={}, y[128]={}; y['N']=1, y['S']=-1; x['W']=1, x['E']=-1; string s; cin>>s; int a=0, b=0; for(char c: s) { a+=x[c]; b+=y[c]; } cout<