N = int(input())

S = list(input())



# Sの値を+-1にする

for i in range(N) :

    if S[i] == 'o' :

        S[i] = 1

    else :

        S[i] = -1



S.append(S[0])



def check() :

    for first in [1, -1] :

        for second in [1, -1] :

            animal = [1] * (N + 2)

            animal[0] = first

            animal[1] = second

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

                if animal[i] == 1 :  # 動物が羊の場合

                    animal[i+1] = animal[i-1] *  S[i]

                else :  # 動物が狼の場合

                    animal[i+1] = animal[i-1] * S[i] * (-1)

            if animal[-2] == first and animal[-1] == second :

                return animal

    return -1



ans = check()



if ans == -1 :

    print(-1)

else :

    for i in range(N) :

        if ans[i] == 1 :

            print('S', end='')

        else :

            print('W', end='')

    print('')

N = int(input())

S = [1 if s == 'o' else -1 for s in input()]



for first in [1, -1]:

    for second in [1, -1]:

        ans = [first, second]

        prev = first

        now = second

        for s in S[1:] + [S[0]]:

            if s == 1:

                if now == 1:

                    prev, now = now, prev

                else:

                    prev, now = now, -prev

            else:

                if now == 1:

                    prev, now = now, -prev

                else:

                    prev, now = now, prev

            ans.append(now)

        if first == ans[-2] and second == ans[-1]:

            print(*['S' if a == 1 else 'W' for a in ans[:-2]], sep='')

            exit()



print(-1)

N = int(input())
S = list(input())
# Sの値を+-1にする
for i in range(N):
    if S[i] == "o":
        S[i] = 1
    else:
        S[i] = -1
S.append(S[0])


def check():
    for first in [1, -1]:
        for second in [1, -1]:
            animal = [1] * (N + 2)
            animal[0] = first
            animal[1] = second
            for i in range(1, N + 1):
                if animal[i] == 1:  # 動物が羊の場合
                    animal[i + 1] = animal[i - 1] * S[i]
                else:  # 動物が狼の場合
                    animal[i + 1] = animal[i - 1] * S[i] * (-1)
            if animal[-2] == first and animal[-1] == second:
                return animal
    return -1


ans = check()
if ans == -1:
    print(-1)
else:
    for i in range(N):
        if ans[i] == 1:
            print("S", end="")
        else:
            print("W", end="")
    print("")

N = int(input())
S = [1 if s == "o" else -1 for s in input()]
for first in [1, -1]:
    for second in [1, -1]:
        ans = [first, second]
        prev = first
        now = second
        for s in S[1:] + [S[0]]:
            if s == 1:
                if now == 1:
                    prev, now = now, prev
                else:
                    prev, now = now, -prev
            else:
                if now == 1:
                    prev, now = now, -prev
                else:
                    prev, now = now, prev
            ans.append(now)
        if first == ans[-2] and second == ans[-1]:
            print(*["S" if a == 1 else "W" for a in ans[:-2]], sep="")
            exit()
print(-1)

-S = list(input()) -# Sの値を+-1にする -for i in range(N): -    if S[i] == "o": -        S[i] = 1 -    else: -        S[i] = -1 -S.append(S[0]) - - -def check(): -    for first in [1, -1]: -        for second in [1, -1]: -            animal = [1] * (N + 2) -            animal[0] = first -            animal[1] = second -            for i in range(1, N + 1): -                if animal[i] == 1:  # 動物が羊の場合 -                    animal[i + 1] = animal[i - 1] * S[i] -                else:  # 動物が狼の場合 -                    animal[i + 1] = animal[i - 1] * S[i] * (-1) -            if animal[-2] == first and animal[-1] == second: -                return animal -    return -1 - - -ans = check() -if ans == -1: -    print(-1) -else: -    for i in range(N): -        if ans[i] == 1: -            print("S", end="") -        else: -            print("W", end="") -    print("") +S = [1 if s == "o" else -1 for s in input()] +for first in [1, -1]: +    for second in [1, -1]: +        ans = [first, second] +        prev = first +        now = second +        for s in S[1:] + [S[0]]: +            if s == 1: +                if now == 1: +                    prev, now = now, prev +                else: +                    prev, now = now, -prev +            else: +                if now == 1: +                    prev, now = now, -prev +                else: +                    prev, now = now, prev +            ans.append(now) +        if first == ans[-2] and second == ans[-1]: +            print(*["S" if a == 1 else "W" for a in ans[:-2]], sep="") +            exit() +print(-1)