N = int(eval(input()))

S = eval(input())



# 0: S, 1: Wとする

X = ['S', 'W']

for P in [[0, 0], [0, 1], [1, 0], [1, 1]]:

    for i, s in enumerate(S[1:], start=1):

        if s == 'o' and P[i] == 0:

            P.append(P[i - 1])



        if s == 'o' and P[i] == 1:

            P.append(P[i - 1] ^ 1)



        if s == 'x' and P[i] == 0:

            P.append(P[i - 1] ^ 1)



        if s == 'x' and P[i] == 1:

            P.append(P[i - 1])



    P = P[:-1]

    # 確認

    for i in range(N):

        if (S[i] == 'o') and (P[i] == 0) and (P[i - 1] != P[(i + 1) % N]):

            break



        if (S[i] == 'o') and (P[i] == 1) and (P[i - 1] == P[(i + 1) % N]):

            break



        if (S[i] == 'x') and (P[i] == 0) and (P[i - 1] == P[(i + 1) % N]):

            break



        if (S[i] == 'x') and (P[i] == 1) and (P[i - 1] != P[(i + 1) % N]):

            break



    else:

        ans = [X[p] for p in P]

        print((''.join(ans)))

        exit()



print((-1))

N = int(eval(input()))

S = list(map(int, input().replace('o', '0').replace('x', '1')))



for p in [[0, 0], [0, 1], [1, 0], [1, 1]]:

    for s in S[1:]:

        if p[-1] ^ p[-2] ^ s == 1:

            p.append(1)

        else:

            p.append(0)



    if (p[0] == p[-1]) and (p[-2] ^ p[-3] ^ p[0] ^ S[-1] == 0) and (p[0] ^ p[-2] ^ p[1] ^ S[0] == 0):

        print((''.join(map(str, p[:-1])).replace('0', 'S').replace('1', 'W')))

        break

else:

    print((-1))

N = int(eval(input()))
S = eval(input())
# 0: S, 1: Wとする
X = ["S", "W"]
for P in [[0, 0], [0, 1], [1, 0], [1, 1]]:
    for i, s in enumerate(S[1:], start=1):
        if s == "o" and P[i] == 0:
            P.append(P[i - 1])
        if s == "o" and P[i] == 1:
            P.append(P[i - 1] ^ 1)
        if s == "x" and P[i] == 0:
            P.append(P[i - 1] ^ 1)
        if s == "x" and P[i] == 1:
            P.append(P[i - 1])
    P = P[:-1]
    # 確認
    for i in range(N):
        if (S[i] == "o") and (P[i] == 0) and (P[i - 1] != P[(i + 1) % N]):
            break
        if (S[i] == "o") and (P[i] == 1) and (P[i - 1] == P[(i + 1) % N]):
            break
        if (S[i] == "x") and (P[i] == 0) and (P[i - 1] == P[(i + 1) % N]):
            break
        if (S[i] == "x") and (P[i] == 1) and (P[i - 1] != P[(i + 1) % N]):
            break
    else:
        ans = [X[p] for p in P]
        print(("".join(ans)))
        exit()
print((-1))

N = int(eval(input()))
S = list(map(int, input().replace("o", "0").replace("x", "1")))
for p in [[0, 0], [0, 1], [1, 0], [1, 1]]:
    for s in S[1:]:
        if p[-1] ^ p[-2] ^ s == 1:
            p.append(1)
        else:
            p.append(0)
    if (
        (p[0] == p[-1])
        and (p[-2] ^ p[-3] ^ p[0] ^ S[-1] == 0)
        and (p[0] ^ p[-2] ^ p[1] ^ S[0] == 0)
    ):
        print(("".join(map(str, p[:-1])).replace("0", "S").replace("1", "W")))
        break
else:
    print((-1))

-S = eval(input()) -# 0: S, 1: Wとする -X = ["S", "W"] -for P in [[0, 0], [0, 1], [1, 0], [1, 1]]: -    for i, s in enumerate(S[1:], start=1): -        if s == "o" and P[i] == 0: -            P.append(P[i - 1]) -        if s == "o" and P[i] == 1: -            P.append(P[i - 1] ^ 1) -        if s == "x" and P[i] == 0: -            P.append(P[i - 1] ^ 1) -        if s == "x" and P[i] == 1: -            P.append(P[i - 1]) -    P = P[:-1] -    # 確認 -    for i in range(N): -        if (S[i] == "o") and (P[i] == 0) and (P[i - 1] != P[(i + 1) % N]): -            break -        if (S[i] == "o") and (P[i] == 1) and (P[i - 1] == P[(i + 1) % N]): -            break -        if (S[i] == "x") and (P[i] == 0) and (P[i - 1] == P[(i + 1) % N]): -            break -        if (S[i] == "x") and (P[i] == 1) and (P[i - 1] != P[(i + 1) % N]): -            break -    else: -        ans = [X[p] for p in P] -        print(("".join(ans))) -        exit() -print((-1)) +S = list(map(int, input().replace("o", "0").replace("x", "1"))) +for p in [[0, 0], [0, 1], [1, 0], [1, 1]]: +    for s in S[1:]: +        if p[-1] ^ p[-2] ^ s == 1: +            p.append(1) +        else: +            p.append(0) +    if ( +        (p[0] == p[-1]) +        and (p[-2] ^ p[-3] ^ p[0] ^ S[-1] == 0) +        and (p[0] ^ p[-2] ^ p[1] ^ S[0] == 0) +    ): +        print(("".join(map(str, p[:-1])).replace("0", "S").replace("1", "W"))) +        break +else: +    print((-1))