local s = io.read()
local t = {}
t["N"] = 0
t["W"] = 0
t["S"] = 0
t["E"] = 0
for i = 1, #s do
  sstr = s:sub(i, i)
  t[sstr] = t[sstr] + 1
end
local ok = true
if 0 < t.N and 0 == t.S then
  ok = false
end
if 0 < t.S and 0 == t.N then
  ok = false
end
if 0 < t.W and 0 == t.E then
  ok = false
end
if 0 < t.E and 0 == t.W then
  ok = false
end
print(ok and "Yes" or "No")
