N = int(input())

s = input()

s += s[0]

l = [0] * (N + 2)



# S: 1, W: 0

for a0, a1 in ((0, 0), (0, 1), (1, 0), (1, 1)):

  l[0], l[1] = a0, a1



  for i in range(1, N + 1):

    if s[i] == 'o': l[i + 1] = not (l[i] ^ l[i - 1])

    else: l[i + 1] = l[i] ^ l[i - 1]



  if (l[0] == l[-2]) and (l[1] == l[-1]):

    print(*['S' if i == 1 else 'W' for i in l[:-2]], sep='')

    exit()



print(-1)

N = int(eval(input()))

s = eval(input())

s += s[0]



# S: 1, W: 0

for a0, a1 in ((0, 0), (0, 1), (1, 0), (1, 1)):

  l = [a0, a1]



  for i in range(1, N + 1):

    if s[i] == 'o':

      a0, a1 = a1, not (a0 ^ a1)

    else:

      a0, a1 = a1, (a0 ^ a1)

    l.append(a1)



  if (l[0] == l[-2]) and (l[1] == l[-1]):

    s = ''.join(['S' if i == 1 else 'W' for i in l[:-2]])

    print(s)

    exit()



print((-1))
N = int(input())
s = input()
s += s[0]
l = [0] * (N + 2)
# S: 1, W: 0
for a0, a1 in ((0, 0), (0, 1), (1, 0), (1, 1)):
    l[0], l[1] = a0, a1
    for i in range(1, N + 1):
        if s[i] == "o":
            l[i + 1] = not (l[i] ^ l[i - 1])
        else:
            l[i + 1] = l[i] ^ l[i - 1]
    if (l[0] == l[-2]) and (l[1] == l[-1]):
        print(*["S" if i == 1 else "W" for i in l[:-2]], sep="")
        exit()
print(-1)

N = int(eval(input()))
s = eval(input())
s += s[0]
# S: 1, W: 0
for a0, a1 in ((0, 0), (0, 1), (1, 0), (1, 1)):
    l = [a0, a1]
    for i in range(1, N + 1):
        if s[i] == "o":
            a0, a1 = a1, not (a0 ^ a1)
        else:
            a0, a1 = a1, (a0 ^ a1)
        l.append(a1)
    if (l[0] == l[-2]) and (l[1] == l[-1]):
        s = "".join(["S" if i == 1 else "W" for i in l[:-2]])
        print(s)
        exit()
print((-1))

-N = int(input()) -s = input() +N = int(eval(input())) +s = eval(input()) -l = [0] * (N + 2) -    l[0], l[1] = a0, a1 +    l = [a0, a1] -            l[i + 1] = not (l[i] ^ l[i - 1]) +            a0, a1 = a1, not (a0 ^ a1) -            l[i + 1] = l[i] ^ l[i - 1] +            a0, a1 = a1, (a0 ^ a1) +        l.append(a1) -        print(*["S" if i == 1 else "W" for i in l[:-2]], sep="") +        s = "".join(["S" if i == 1 else "W" for i in l[:-2]]) +        print(s) -print(-1) +print((-1))