#!/bin/sh
read
N_NOT=${REPLY//N/}
W_NOT=${REPLY//W/}
NS=${W_NOT//E/}
WE=${N_NOT//S/}
N=${NS//S/}
W=${WE//E/}
E=${WE//W/}
S=${NS//N/}
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
elif [ $N -ge 1 -a $S -eq 0 -a $W -ge 1 -a $E -eq 0 ]
then
	echo No
	exit
elif [ $N -ge 1 -a $S -eq 0 -a $W -eq 0 -a $E -ge 1 ]
then
	echo No
	exit
elif [ $N -eq 0 -a $S -ge 1 -a $W -eq 0 -a $E -ge 1 ]
then
	echo No
	exit
elif [ $N -eq 0 -a $S -ge 1 -a $W -ge 1 -a $E -eq 0 ]
then
	echo No
	exit
fi
echo Yes
