import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()) {
            int N = sc.nextInt();
            char[] arr = sc.next().toCharArray();
            HashMap<String, String> map = new HashMap<>();
            map.put("NL", "W");
            map.put("EL", "N");
            map.put("SL", "E");
            map.put("WL", "S");
            map.put("NR", "E");
            map.put("ER", "S");
            map.put("SR", "W");
            map.put("WR", "N");
            String now = "N";
            for(int i = 0; i < N; i++) {
                now = map.get(now + arr[i]);
            }
            System.out.println(now);
        }
    }
}