#include using namespace std; #define int long long signed main(){ string S = "NESW"; char a,b; cin>>a>>b; if(a == 'N'){ if(b == 'N') cout<<0<