using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;

namespace Capp
{
    class Program
    {
        public enum En
        {
            a
            ,b
            ,c
            ,d
            ,e
            ,f
        }

        
        static void Main(string[] args)
        {
            string s;
            s = Console.ReadLine();

            // NNSNSSSNSSSNSSNNNNSNNNSNSNSNSNSN
            // WE
            bool N = false,S =false , W =false, E=false;
            foreach(var itm in s)
            {
                if (itm == 'N') N = true;
                if (itm == 'S') S = true;
                if (itm == 'W') W = true;
                if (itm == 'E') E = true;
            }

            if ((N ^ S) || (W ^ E))
            {
                Console.WriteLine("No");
            }
            else
            {
                Console.WriteLine("Yes");
            }

        }
    }

    public class Solve
    {
        readonly List<int>[] es = new List<int>[10];
        int n;
        int m;
        int res = 0;

        // 訪問管理
        readonly bool[] Visit = new bool[10];
        private void Rec(int x)
        {
            bool ok = true;
            for (int i = 0; i < n; i++)
            {
                if (!Visit[i])
                    ok = false;
            }
            // 全て訪問済みならok
            if (ok)
            {
                res++;
                return;
            }

            foreach (var v in es[x])
            {
                // 訪問済みならcontinue
                if (Visit[v]) continue;

                // 訪問済みにする
                Visit[v] = true;

                Rec(v);

                // 訪問解除する
                Visit[v] = false;
            }
        }

        public void S()
        {
            var nm = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
            n = nm[0];
            m = nm[1];
            for (int i = 0; i < 10; i++)
            {
                es[i] = new List<int>();
            }
            for (int i = 0; i < m; i++)
            {
                var s = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
                var a = s[0] - 1;
                var b = s[1] - 1;
                es[a].Add(b);
                es[b].Add(a);
            }
            // 頂点1を訪問する
            Visit[0] = true;
            Rec(0);
            Console.WriteLine(res);
        }
    }

    public class Test<T> : ITest<T>
    {
        public string S { get; set; }
    }

    public interface ITest<out T>
    {
        string S { get; set; }
    }

    struct c
    {
        public string s { get; set; }
        private dynamic _d;
        public dynamic d { get { return _d; }}
        public void Setd(dynamic d)
        {
            _d = d;
        }
    }
    class AsTest
    {
        internal async Task<int> AsyncMethod(int x)
        {
            var t1 = Task.Run(() =>
            {
                Thread.Sleep(10000);
                return 10 * x;
            });
            var res = await t1;
            Console.WriteLine($"asyncmethod {res}");


            return res;
        }

    }
}


Measured memory_bytes: 25844