s=io.read()
t={}
for i=1,#s do
    table.insert(t,s:sub(i,i))
end
table.sort(t)
x=table.concat(t,"")
if string.match(x,"E+N+S+W+") or string.match(x,"W+E+")==x or string.match(x,"N+S+")==x then
    print("Yes")
else
    print("No")
end