def f(x,y,z):

    if x=="S" and y=="o":

        return z

    if x=="S" and y=="x":

        return g(z)

    if x=="W" and y=="o":

        return g(z)

    if x=="W" and y=="x":

        return z

def g(x):

    if x=="S":

        return "W"

    if x=="W":

        return "S"

def check(x,y):

    t[0]=x

    t[1]=y

    for j in range(1,N-1):

        t[j+1] = f(t[j],s[j],t[j-1])

    x1 = f(t[N-1],s[N-1],t[N-2])

    y1 = f(x1,s[0],t[N-1])

    if x==x1 and y==y1:

        return True

    else:

        return False

N = int(eval(input()))

s = input().strip()

t = [0 for _ in range(N)]

if check("S","S"):

    print(("".join(t)))

elif check("S","W"):

    print(("".join(t)))

elif check("W","S"):

    print(("".join(t)))

elif check("W","W"):

    print(("".join(t)))

else:

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

s = input().strip()

flag = 1

A = [0 for _ in range(N)]

for a in range(2):

    for b in range(2):

        A[0]=a

        A[1]=b

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

            if A[i]==0 and s[i]=="o":

                A[i+1]=A[i-1]

            elif A[i]==0 and s[i]=="x":

                A[i+1]=1-A[i-1]

            elif A[i]==1 and s[i]=="o":

                A[i+1]=1-A[i-1]

            elif A[i]==1 and s[i]=="x":

                A[i+1]=A[i-1]

        if A[N-1]==0 and s[N-1]=="o":

            if A[0]==A[N-2]:

                flag = 0

            else:

                flag = 1

                continue

        elif A[N-1]==0 and s[N-1]=="x":

            if A[0]==1-A[N-2]:

                flag = 0

            else:

                flag = 1

                continue

        elif A[N-1]==1 and s[N-1]=="o":

            if A[0]==1-A[N-2]:

                flag = 0

            else:

                flag = 1

                continue

        elif A[N-1]==1 and s[N-1]=="x":

            if A[0]==A[N-2]:

                flag = 0

            else:

                flag =1

                continue

        if A[0]==0 and s[0]=="o":

            if A[1]==A[N-1]:

                flag = 0

            else:

                flag =1

                continue

        elif A[0]==0 and s[0]=="x":

            if A[1]==1-A[N-1]:

                flag = 0

            else:

                flag = 1

                continue

        elif A[0]==1 and s[0]=="o":

            if A[1]==1-A[N-1]:

                flag = 0

            else:

                flag = 1

                continue

        elif A[0]==1 and s[0]=="x":

            if A[1]==A[N-1]:

                flag = 0

            else:

                flag = 1

                continue

        if flag==0:

            B = []

            for i in range(N):

                if A[i]==0:

                    B.append("S")

                else:

                    B.append("W")

            break

    if flag==0:break

if flag==1:

    print((-1))

else:

    print(("".join(B)))
def f(x, y, z):
    if x == "S" and y == "o":
        return z
    if x == "S" and y == "x":
        return g(z)
    if x == "W" and y == "o":
        return g(z)
    if x == "W" and y == "x":
        return z


def g(x):
    if x == "S":
        return "W"
    if x == "W":
        return "S"


def check(x, y):
    t[0] = x
    t[1] = y
    for j in range(1, N - 1):
        t[j + 1] = f(t[j], s[j], t[j - 1])
    x1 = f(t[N - 1], s[N - 1], t[N - 2])
    y1 = f(x1, s[0], t[N - 1])
    if x == x1 and y == y1:
        return True
    else:
        return False


N = int(eval(input()))
s = input().strip()
t = [0 for _ in range(N)]
if check("S", "S"):
    print(("".join(t)))
elif check("S", "W"):
    print(("".join(t)))
elif check("W", "S"):
    print(("".join(t)))
elif check("W", "W"):
    print(("".join(t)))
else:
    print((-1))

N = int(eval(input()))
s = input().strip()
flag = 1
A = [0 for _ in range(N)]
for a in range(2):
    for b in range(2):
        A[0] = a
        A[1] = b
        for i in range(1, N - 1):
            if A[i] == 0 and s[i] == "o":
                A[i + 1] = A[i - 1]
            elif A[i] == 0 and s[i] == "x":
                A[i + 1] = 1 - A[i - 1]
            elif A[i] == 1 and s[i] == "o":
                A[i + 1] = 1 - A[i - 1]
            elif A[i] == 1 and s[i] == "x":
                A[i + 1] = A[i - 1]
        if A[N - 1] == 0 and s[N - 1] == "o":
            if A[0] == A[N - 2]:
                flag = 0
            else:
                flag = 1
                continue
        elif A[N - 1] == 0 and s[N - 1] == "x":
            if A[0] == 1 - A[N - 2]:
                flag = 0
            else:
                flag = 1
                continue
        elif A[N - 1] == 1 and s[N - 1] == "o":
            if A[0] == 1 - A[N - 2]:
                flag = 0
            else:
                flag = 1
                continue
        elif A[N - 1] == 1 and s[N - 1] == "x":
            if A[0] == A[N - 2]:
                flag = 0
            else:
                flag = 1
                continue
        if A[0] == 0 and s[0] == "o":
            if A[1] == A[N - 1]:
                flag = 0
            else:
                flag = 1
                continue
        elif A[0] == 0 and s[0] == "x":
            if A[1] == 1 - A[N - 1]:
                flag = 0
            else:
                flag = 1
                continue
        elif A[0] == 1 and s[0] == "o":
            if A[1] == 1 - A[N - 1]:
                flag = 0
            else:
                flag = 1
                continue
        elif A[0] == 1 and s[0] == "x":
            if A[1] == A[N - 1]:
                flag = 0
            else:
                flag = 1
                continue
        if flag == 0:
            B = []
            for i in range(N):
                if A[i] == 0:
                    B.append("S")
                else:
                    B.append("W")
            break
    if flag == 0:
        break
if flag == 1:
    print((-1))
else:
    print(("".join(B)))

-def f(x, y, z): -    if x == "S" and y == "o": -        return z -    if x == "S" and y == "x": -        return g(z) -    if x == "W" and y == "o": -        return g(z) -    if x == "W" and y == "x": -        return z - - -def g(x): -    if x == "S": -        return "W" -    if x == "W": -        return "S" - - -def check(x, y): -    t[0] = x -    t[1] = y -    for j in range(1, N - 1): -        t[j + 1] = f(t[j], s[j], t[j - 1]) -    x1 = f(t[N - 1], s[N - 1], t[N - 2]) -    y1 = f(x1, s[0], t[N - 1]) -    if x == x1 and y == y1: -        return True -    else: -        return False - - -t = [0 for _ in range(N)] -if check("S", "S"): -    print(("".join(t))) -elif check("S", "W"): -    print(("".join(t))) -elif check("W", "S"): -    print(("".join(t))) -elif check("W", "W"): -    print(("".join(t))) +flag = 1 +A = [0 for _ in range(N)] +for a in range(2): +    for b in range(2): +        A[0] = a +        A[1] = b +        for i in range(1, N - 1): +            if A[i] == 0 and s[i] == "o": +                A[i + 1] = A[i - 1] +            elif A[i] == 0 and s[i] == "x": +                A[i + 1] = 1 - A[i - 1] +            elif A[i] == 1 and s[i] == "o": +                A[i + 1] = 1 - A[i - 1] +            elif A[i] == 1 and s[i] == "x": +                A[i + 1] = A[i - 1] +        if A[N - 1] == 0 and s[N - 1] == "o": +            if A[0] == A[N - 2]: +                flag = 0 +            else: +                flag = 1 +                continue +        elif A[N - 1] == 0 and s[N - 1] == "x": +            if A[0] == 1 - A[N - 2]: +                flag = 0 +            else: +                flag = 1 +                continue +        elif A[N - 1] == 1 and s[N - 1] == "o": +            if A[0] == 1 - A[N - 2]: +                flag = 0 +            else: +                flag = 1 +                continue +        elif A[N - 1] == 1 and s[N - 1] == "x": +            if A[0] == A[N - 2]: +                flag = 0 +            else: +                flag = 1 +                continue +        if A[0] == 0 and s[0] == "o": +            if A[1] == A[N - 1]: +                flag = 0 +            else: +                flag = 1 +                continue +        elif A[0] == 0 and s[0] == "x": +            if A[1] == 1 - A[N - 1]: +                flag = 0 +            else: +                flag = 1 +                continue +        elif A[0] == 1 and s[0] == "o": +            if A[1] == 1 - A[N - 1]: +                flag = 0 +            else: +                flag = 1 +                continue +        elif A[0] == 1 and s[0] == "x": +            if A[1] == A[N - 1]: +                flag = 0 +            else: +                flag = 1 +                continue +        if flag == 0: +            B = [] +            for i in range(N): +                if A[i] == 0: +                    B.append("S") +                else: +                    B.append("W") +            break +    if flag == 0: +        break +if flag == 1: +    print((-1)) -    print((-1)) +    print(("".join(B)))