N = int(eval(input()))

s = eval(input())

def solve(ans):

    for i in range(2,N):

        if ans[i-2]=='S' and ans[i-1]=='S':

            if s[i-1]=='o':

                ans += 'S'

            else:

                ans += 'W'

        elif ans[i-2]=='S' and ans[i-1]=='W':

            if s[i-1]=='o':

                ans += 'W'

            else:

                ans += 'S'

        elif ans[i-2]=='W' and ans[i-1]=='S':

            if s[i-1]=='o':

                ans += 'W'

            else:

                ans += 'S'

        else:

            if s[i-1]=='o':

                ans += 'S'

            else:

                ans += 'W'

    if (ans[0]=='S' and s[0]=='o') or (ans[0]=='W' and s[0]=='x'):

        if ans[-1]!=ans[1]:

            return

    elif (ans[0]=='S' and s[0]=='x') or (ans[0]=='W' and s[0]=='o'):

        if ans[-1]==ans[1]:

            return

    if (ans[-1]=='S' and s[-1]=='o') or (ans[-1]=='W' and s[-1]=='x'):

        if ans[-2]!=ans[0]:

            return

    elif (ans[-1]=='S' and s[-1]=='x') or (ans[-1]=='W' and s[-1]=='o'):

        if ans[-2]==ans[0]:

            return

    return ans



C = ['SS','SW','WS','WW']



for c in C:

    if solve(c):

        print((solve(c)))

        break

else:

    print((-1))
N = int(input())

S = input()



assignable = False



for k in range(4):

    res = [None for _ in range(N)]

    res[0] = k % 2

    res[-1] = k // 2

    for i in range(N - 2):

        if S[i] == 'o':

            if res[i] == 0:

                res[i + 1] = res[i - 1]

            else:

                res[i + 1] = 1 - res[i - 1]

        else:

            if res[i] == 0:

                res[i + 1] = 1 - res[i - 1]

            else:

                res[i + 1] = res[i - 1]

    if S[-2] == 'o':

        if res[-2] == 0:

            if res[-1] != res[-3]:

                continue

        else:

            if res[-1] != 1 - res[-3]:

                continue

    else:

        if res[-2] == 0:

            if res[-1] != 1 - res[-3]:

                continue

        else:

            if res[-1] != res[-3]:

                continue

    if S[-1] == 'o':

        if res[-1] == 0:

            if res[0] == res[-2]:

                assignable = True

        else:

            if res[0] == 1 - res[-2]:

                assignable = True

    else:

        if res[-1] == 0:

            if res[0] == 1 - res[-2]:

                assignable = True

        else:

            if res[0] == res[-2]:

                assignable = True

    if assignable:

        for i in range(N):

            if res[i]:

                print('W', end='')

            else:

                print('S', end='')

        break

else:

    print(-1)

N = int(eval(input()))
s = eval(input())


def solve(ans):
    for i in range(2, N):
        if ans[i - 2] == "S" and ans[i - 1] == "S":
            if s[i - 1] == "o":
                ans += "S"
            else:
                ans += "W"
        elif ans[i - 2] == "S" and ans[i - 1] == "W":
            if s[i - 1] == "o":
                ans += "W"
            else:
                ans += "S"
        elif ans[i - 2] == "W" and ans[i - 1] == "S":
            if s[i - 1] == "o":
                ans += "W"
            else:
                ans += "S"
        else:
            if s[i - 1] == "o":
                ans += "S"
            else:
                ans += "W"
    if (ans[0] == "S" and s[0] == "o") or (ans[0] == "W" and s[0] == "x"):
        if ans[-1] != ans[1]:
            return
    elif (ans[0] == "S" and s[0] == "x") or (ans[0] == "W" and s[0] == "o"):
        if ans[-1] == ans[1]:
            return
    if (ans[-1] == "S" and s[-1] == "o") or (ans[-1] == "W" and s[-1] == "x"):
        if ans[-2] != ans[0]:
            return
    elif (ans[-1] == "S" and s[-1] == "x") or (ans[-1] == "W" and s[-1] == "o"):
        if ans[-2] == ans[0]:
            return
    return ans


C = ["SS", "SW", "WS", "WW"]
for c in C:
    if solve(c):
        print((solve(c)))
        break
else:
    print((-1))

N = int(input())
S = input()
assignable = False
for k in range(4):
    res = [None for _ in range(N)]
    res[0] = k % 2
    res[-1] = k // 2
    for i in range(N - 2):
        if S[i] == "o":
            if res[i] == 0:
                res[i + 1] = res[i - 1]
            else:
                res[i + 1] = 1 - res[i - 1]
        else:
            if res[i] == 0:
                res[i + 1] = 1 - res[i - 1]
            else:
                res[i + 1] = res[i - 1]
    if S[-2] == "o":
        if res[-2] == 0:
            if res[-1] != res[-3]:
                continue
        else:
            if res[-1] != 1 - res[-3]:
                continue
    else:
        if res[-2] == 0:
            if res[-1] != 1 - res[-3]:
                continue
        else:
            if res[-1] != res[-3]:
                continue
    if S[-1] == "o":
        if res[-1] == 0:
            if res[0] == res[-2]:
                assignable = True
        else:
            if res[0] == 1 - res[-2]:
                assignable = True
    else:
        if res[-1] == 0:
            if res[0] == 1 - res[-2]:
                assignable = True
        else:
            if res[0] == res[-2]:
                assignable = True
    if assignable:
        for i in range(N):
            if res[i]:
                print("W", end="")
            else:
                print("S", end="")
        break
else:
    print(-1)

-N = int(eval(input())) -s = eval(input()) - - -def solve(ans): -    for i in range(2, N): -        if ans[i - 2] == "S" and ans[i - 1] == "S": -            if s[i - 1] == "o": -                ans += "S" +N = int(input()) +S = input() +assignable = False +for k in range(4): +    res = [None for _ in range(N)] +    res[0] = k % 2 +    res[-1] = k // 2 +    for i in range(N - 2): +        if S[i] == "o": +            if res[i] == 0: +                res[i + 1] = res[i - 1] -                ans += "W" -        elif ans[i - 2] == "S" and ans[i - 1] == "W": -            if s[i - 1] == "o": -                ans += "W" +                res[i + 1] = 1 - res[i - 1] +        else: +            if res[i] == 0: +                res[i + 1] = 1 - res[i - 1] -                ans += "S" -        elif ans[i - 2] == "W" and ans[i - 1] == "S": -            if s[i - 1] == "o": -                ans += "W" +                res[i + 1] = res[i - 1] +    if S[-2] == "o": +        if res[-2] == 0: +            if res[-1] != res[-3]: +                continue +        else: +            if res[-1] != 1 - res[-3]: +                continue +    else: +        if res[-2] == 0: +            if res[-1] != 1 - res[-3]: +                continue +        else: +            if res[-1] != res[-3]: +                continue +    if S[-1] == "o": +        if res[-1] == 0: +            if res[0] == res[-2]: +                assignable = True +        else: +            if res[0] == 1 - res[-2]: +                assignable = True +    else: +        if res[-1] == 0: +            if res[0] == 1 - res[-2]: +                assignable = True +        else: +            if res[0] == res[-2]: +                assignable = True +    if assignable: +        for i in range(N): +            if res[i]: +                print("W", end="") -                ans += "S" -        else: -            if s[i - 1] == "o": -                ans += "S" -            else: -                ans += "W" -    if (ans[0] == "S" and s[0] == "o") or (ans[0] == "W" and s[0] == "x"): -        if ans[-1] != ans[1]: -            return -    elif (ans[0] == "S" and s[0] == "x") or (ans[0] == "W" and s[0] == "o"): -        if ans[-1] == ans[1]: -            return -    if (ans[-1] == "S" and s[-1] == "o") or (ans[-1] == "W" and s[-1] == "x"): -        if ans[-2] != ans[0]: -            return -    elif (ans[-1] == "S" and s[-1] == "x") or (ans[-1] == "W" and s[-1] == "o"): -        if ans[-2] == ans[0]: -            return -    return ans - - -C = ["SS", "SW", "WS", "WW"] -for c in C: -    if solve(c): -        print((solve(c))) +                print("S", end="") -    print((-1)) +    print(-1)