#!/bin/sh
read
N=`echo $REPLY | grep -o . | grep -c 'N'`
W=`echo $REPLY | grep -o . | grep -c 'W'`
E=`echo $REPLY | grep -o . | grep -c 'E'`
S=`echo $REPLY | grep -o . | grep -c 'S'`
if [ $N -eq 0 -a $S -eq 0 -a $W -eq 0 -a $E -ge 1 ]
then
	echo No
	exit
elif [ $N -eq 0 -a $S -eq 0 -a $W -ge 1 -a $E -eq 0 ]
then
	echo No
	exit
elif [ $N -eq 0 -a $S -ge 1 -a $W -eq 0 -a $E -eq 0 ]
then
	echo No
	exit
elif [ $N -ge 1 -a $S -eq 0 -a $W -eq 0 -a $E -eq 0 ]
then
	echo No
	exit
elif [ $N -ge 1 -a $S -ge 1 -a $W -ge 1 -a $E -eq 0 ]
then
	echo No
	exit
elif [ $N -ge 1 -a $S -ge 1 -a $W -eq 0 -a $E -ge 1 ]
then
	echo No
	exit
elif [ $N -ge 1 -a $S -eq 0 -a $W -ge 1 -a $E -ge 1 ]
then
	echo No
	exit
elif [ $N -eq 0 -a $S -ge 1 -a $W -ge 1 -a $E -ge 1 ]
then
	echo No
	exit
fi
echo Yes
