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

int main()
{
	string s; cin >> s;
	vector<bool> n(4, 0);

	for (int i = 0; i < s.size(); i++) {
		if (s[i] == 'N') n[0] = 1;
		if (s[i] == 'S') n[1] = 1;
		if (s[i] == 'E') n[2] = 1;
		if (s[i] == 'W') n[3] = 1;
	}

	cout << ((n[0]^n[1]) or (n[2]^n[3]) ? "No" : "Yes") << endl;
}
