num = input()
direc = input()
direcList = list(direc)
direction = 0
for dire in direcList:
    if dire == 'L':
        direction -= 1
    elif dire == 'R':
        direction += 1
directionList = ['N','E','S','W']
if direction >= 4:
    direction = direction % 4
if direction < 0:
    while direction < 0:
        direction += 4
print(directionList[direction])