#include <bits/stdc++.h>
using namespace std;

map<char, int> mp;

int main() {
	string s;
  	cin >> s;
  	for (int i = 0; i < s.size(); i++)
    	mp[s[i]] = true;
	cout << (!(mp['S'] ^ mp['N']) && !(mp['E'] ^ mp['W'])? "Yes": "No") << endl;
}