import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String s = sc.next();
        String str = "NESW";//向右转就加一个下标,向左转就减一个下标
        int r = 0;//初始下标为0
        for(int i = 0; i < N; ++i){
            if(s.charAt(i) == 'R') r++;
            else r--;
        }
        r %= 4;
        if(r < 0) r += 4;//避免余数为负
        System.out.println(str.charAt(r));//当前下标就是答案
    }
}