n=int(eval(input()))

s=eval(input())

for p in range(4):

    l=[p//2,p%2]+[0]*(n-2)

    for i in range(1,n):

        l[(i+1)%n]=[l[i-1],1-l[i-1]][::(-1)**int(s[i]=="o")][l[i]]

    for i in range(n):

        if s[i]!="ox"[int(l[(i-1)%n]==l[(i+1)%n])-l[i]]:break

    else:print(("".join("WS"[x] for x in l)));exit()

print((-1))
n=int(eval(input()));s=eval(input())

for p in range(4):

  l=[p//2,p%2]+[0]*(n-2)

  for i in range(1,n):l[(i+1)%n]=[l[i-1],1-l[i-1]][::(-1)**(s[i]=="o")][l[i]]

  for i in range(n):

    if s[i]!="ox"[int(l[(i-1)%n]==l[(i+1)%n])-l[i]]:break

  else:print(("".join("WS"[x]for x in l)));exit()

print((-1))
n = int(eval(input()))
s = eval(input())
for p in range(4):
    l = [p // 2, p % 2] + [0] * (n - 2)
    for i in range(1, n):
        l[(i + 1) % n] = [l[i - 1], 1 - l[i - 1]][:: (-1) ** int(s[i] == "o")][l[i]]
    for i in range(n):
        if s[i] != "ox"[int(l[(i - 1) % n] == l[(i + 1) % n]) - l[i]]:
            break
    else:
        print(("".join("WS"[x] for x in l)))
        exit()
print((-1))

n = int(eval(input()))
s = eval(input())
for p in range(4):
    l = [p // 2, p % 2] + [0] * (n - 2)
    for i in range(1, n):
        l[(i + 1) % n] = [l[i - 1], 1 - l[i - 1]][:: (-1) ** (s[i] == "o")][l[i]]
    for i in range(n):
        if s[i] != "ox"[int(l[(i - 1) % n] == l[(i + 1) % n]) - l[i]]:
            break
    else:
        print(("".join("WS"[x] for x in l)))
        exit()
print((-1))

-        l[(i + 1) % n] = [l[i - 1], 1 - l[i - 1]][:: (-1) ** int(s[i] == "o")][l[i]] +        l[(i + 1) % n] = [l[i - 1], 1 - l[i - 1]][:: (-1) ** (s[i] == "o")][l[i]]