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(eval(input()))

S = eval(input())



def isOk(first, second):

    prev, now = first, second

    ret = [prev]



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

        ret.append(now)

        isSame = (s == 'o')



        if isSame == now:

            prev, now = now, prev

        else:

            prev, now = now, not prev



    return ret if (first == prev and second == now) else []



for first in [True, False]:

    for second in [True, False]:

        ans = isOk(first, second)

        if ans:

            print((''.join(['S' if a else 'W' for a in ans[:-1]])))

            exit()



print('-1')

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(eval(input()))
S = eval(input())


def isOk(first, second):
    prev, now = first, second
    ret = [prev]
    for s in S[1:] + S[0]:
        ret.append(now)
        isSame = s == "o"
        if isSame == now:
            prev, now = now, prev
        else:
            prev, now = now, not prev
    return ret if (first == prev and second == now) else []


for first in [True, False]:
    for second in [True, False]:
        ans = isOk(first, second)
        if ans:
            print(("".join(["S" if a else "W" for a in ans[:-1]])))
            exit()
print("-1")

-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="") +N = int(eval(input())) +S = eval(input()) + + +def isOk(first, second): +    prev, now = first, second +    ret = [prev] +    for s in S[1:] + S[0]: +        ret.append(now) +        isSame = s == "o" +        if isSame == now: +            prev, now = now, prev +        else: +            prev, now = now, not prev +    return ret if (first == prev and second == now) else [] + + +for first in [True, False]: +    for second in [True, False]: +        ans = isOk(first, second) +        if ans: +            print(("".join(["S" if a else "W" for a in ans[:-1]]))) -print(-1) +print("-1")