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)

def check(a, b, S):

    animal = [a, b]

    for s in S[1:]:

        if s == "o" and animal[-1]:

            animal.append(animal[-2])

        elif s == "o" and not animal[-1]:

            animal.append(animal[-2] ^ 1)

        elif s == "x" and animal[-1]:

            animal.append(animal[-2] ^ 1)

        else:

            animal.append(animal[-2])



    if animal[:2] != animal[-2:]:

        return False



    ans = ""

    for x in animal[:-2]:

        if x:

            ans += "S"

        else:

            ans += "W"

    print(ans)

    return True





if __name__ == "__main__":

    N = int(eval(input()))

    S = eval(input())

    S += S[0]

    for i in range(2):

        for j in range(2):

            if check(i, j, S):

                exit()

    print((-1))
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)

def check(a, b, S):
    animal = [a, b]
    for s in S[1:]:
        if s == "o" and animal[-1]:
            animal.append(animal[-2])
        elif s == "o" and not animal[-1]:
            animal.append(animal[-2] ^ 1)
        elif s == "x" and animal[-1]:
            animal.append(animal[-2] ^ 1)
        else:
            animal.append(animal[-2])
    if animal[:2] != animal[-2:]:
        return False
    ans = ""
    for x in animal[:-2]:
        if x:
            ans += "S"
        else:
            ans += "W"
    print(ans)
    return True


if __name__ == "__main__":
    N = int(eval(input()))
    S = eval(input())
    S += S[0]
    for i in range(2):
        for j in range(2):
            if check(i, j, S):
                exit()
    print((-1))

-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] +def check(a, b, S): +    animal = [a, b] +    for s in S[1:]: +        if s == "o" and animal[-1]: +            animal.append(animal[-2]) +        elif s == "o" and not animal[-1]: +            animal.append(animal[-2] ^ 1) +        elif s == "x" and animal[-1]: +            animal.append(animal[-2] ^ 1) -            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: +            animal.append(animal[-2]) +    if animal[:2] != animal[-2:]: +        return False -    for x in ws: +    for x in animal[:-2]: -print(ans) +    print(ans) +    return True + + +if __name__ == "__main__": +    N = int(eval(input())) +    S = eval(input()) +    S += S[0] +    for i in range(2): +        for j in range(2): +            if check(i, j, S): +                exit() +    print((-1))