N = int(eval(input()))

S = eval(input())

S = S[-1] + S + S[0]



# sheep:1, wolf:0

isOK = False

for x, y in [(1, 1), (1, 0), (0, 1), (0, 0)]:

    A = [-1] * len(S)

    A[0] = x

    A[1] = y

    for i in range(1, len(S)-1):

        if A[i]:  # 羊の場合

            A[i + 1] = A[i - 1] if S[i] == "o" else 1 - A[i - 1]

        else:  # 狼の場合

            A[i + 1] = A[i - 1] if S[i] == "x" else 1 - A[i - 1]



    if A[0] == A[-2] and A[1] == A[-1]:

        isOK = True

        break



if isOK:

    ans = ["S" if i else "W" for i in A[1:-1]]

    ans = "".join(ans)

else:

    ans = -1



print(ans)

from itertools import product

N = int(eval(input()))

S = eval(input())

S += S[0]





def isOK(x, y):

    WS = [-1] * (N + 2)

    WS[0] = x

    WS[1] = y

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

        if S[i] == "o":

            WS[i + 1] = WS[i - 1] if WS[i] else 1 - WS[i - 1]

        else:

            WS[i + 1] = 1 - WS[i - 1] if WS[i] else WS[i - 1]

    if WS[0] == WS[-2] and WS[1] == WS[-1]:

        return WS[:-2]

    else:

        return []





for x, y in product(list(range(2)), repeat=2):

    ws = isOK(x, y)

    if len(ws) > 0:

        break



if len(ws) == 0:

    ans = -1

else:

    ans = ""

    for x in ws:

        if x:

            ans += "S"

        else:

            ans += "W"



print(ans)

N = int(eval(input()))
S = eval(input())
S = S[-1] + S + S[0]
# sheep:1, wolf:0
isOK = False
for x, y in [(1, 1), (1, 0), (0, 1), (0, 0)]:
    A = [-1] * len(S)
    A[0] = x
    A[1] = y
    for i in range(1, len(S) - 1):
        if A[i]:  # 羊の場合
            A[i + 1] = A[i - 1] if S[i] == "o" else 1 - A[i - 1]
        else:  # 狼の場合
            A[i + 1] = A[i - 1] if S[i] == "x" else 1 - A[i - 1]
    if A[0] == A[-2] and A[1] == A[-1]:
        isOK = True
        break
if isOK:
    ans = ["S" if i else "W" for i in A[1:-1]]
    ans = "".join(ans)
else:
    ans = -1
print(ans)

from itertools import product

N = int(eval(input()))
S = eval(input())
S += S[0]


def isOK(x, y):
    WS = [-1] * (N + 2)
    WS[0] = x
    WS[1] = y
    for i in range(1, N + 1):
        if S[i] == "o":
            WS[i + 1] = WS[i - 1] if WS[i] else 1 - WS[i - 1]
        else:
            WS[i + 1] = 1 - WS[i - 1] if WS[i] else WS[i - 1]
    if WS[0] == WS[-2] and WS[1] == WS[-1]:
        return WS[:-2]
    else:
        return []


for x, y in product(list(range(2)), repeat=2):
    ws = isOK(x, y)
    if len(ws) > 0:
        break
if len(ws) == 0:
    ans = -1
else:
    ans = ""
    for x in ws:
        if x:
            ans += "S"
        else:
            ans += "W"
print(ans)

+from itertools import product + -S = S[-1] + S + S[0] -# sheep:1, wolf:0 -isOK = False -for x, y in [(1, 1), (1, 0), (0, 1), (0, 0)]: -    A = [-1] * len(S) -    A[0] = x -    A[1] = y -    for i in range(1, len(S) - 1): -        if A[i]:  # 羊の場合 -            A[i + 1] = A[i - 1] if S[i] == "o" else 1 - A[i - 1] -        else:  # 狼の場合 -            A[i + 1] = A[i - 1] if S[i] == "x" else 1 - A[i - 1] -    if A[0] == A[-2] and A[1] == A[-1]: -        isOK = True +S += S[0] + + +def isOK(x, y): +    WS = [-1] * (N + 2) +    WS[0] = x +    WS[1] = y +    for i in range(1, N + 1): +        if S[i] == "o": +            WS[i + 1] = WS[i - 1] if WS[i] else 1 - WS[i - 1] +        else: +            WS[i + 1] = 1 - WS[i - 1] if WS[i] else WS[i - 1] +    if WS[0] == WS[-2] and WS[1] == WS[-1]: +        return WS[:-2] +    else: +        return [] + + +for x, y in product(list(range(2)), repeat=2): +    ws = isOK(x, y) +    if len(ws) > 0: -if isOK: -    ans = ["S" if i else "W" for i in A[1:-1]] -    ans = "".join(ans) +if len(ws) == 0: +    ans = -1 -    ans = -1 +    ans = "" +    for x in ws: +        if x: +            ans += "S" +        else: +            ans += "W"