let S=readLine()!.characters.map{$0}
print(!S.contains("N")&&S.contains("S") || !S.contains("E")&&S.contains("W") || !S.contains("W")&&S.contains("E") || !S.contains("S")&&S.contains("N") ?"No":"Yes")