#D問題
N = int(input())
Slist = list(str(input()))
flag = 0

anslist = []
maeflag = ""
froflag = ""
for i in range(N):
    if i == 0:
        anslist.append("S")
        if Slist[0] == "o":
            maeflag = "S"
        else:
            maeflag = "W"
    elif i == 1:
        anslist.append("S")
        if Slist[i] == "o":
            anslist.append("S")
        else:
            anslist.append("W")
    elif i < N-1:
        if Slist[i] == "o":
            if anslist[i] == "S":
                anslist.append(anslist[i-1])
            else:
                if anslist[i-1] == "S":
                    anslist.append("W")
                else:
                    anslist.append("S")
        else:
            if anslist[i] == "S":
                if anslist[i-1] == "S":
                    anslist.append("W")
                else:
                    anslist.append("S")
            else:
                anslist.append(anslist[i-1])
    else:
        if Slist[i] == "o":
            if anslist[-1] == "S":
                froflag = anslist[i-1]
            else:
                if anslist[i-1] == "S":
                    froflag = "W"
                else:
                    froflag = "S"
        else:
            if anslist[-1] == "S":
                if anslist[i-1] == "S":
                    froflag = "W"
                else:
                    froflag = "S"
            else:
                froflag = anslist[i-1]

if maeflag == anslist[-1] and froflag == anslist[0]:
    print("".join(anslist))
    flag = 1

anslist = []
maeflag = ""
froflag = ""
for i in range(N):
    if i == 0:
        anslist.append("S")
        if Slist[0] == "o":
            maeflag = "W"
        else:
            maeflag = "S"
    elif i == 1:
        anslist.append("W")
        if Slist[i] == "o":
            anslist.append("W")
        else:
            anslist.append("S")
    elif i < N-1:
        if Slist[i] == "o":
            if anslist[i] == "S":
                anslist.append(anslist[i-1])
            else:
                if anslist[i-1] == "S":
                    anslist.append("W")
                else:
                    anslist.append("S")
        else:
            if anslist[i] == "S":
                if anslist[i-1] == "S":
                    anslist.append("W")
                else:
                    anslist.append("S")
            else:
                anslist.append(anslist[i-1])
    else:
        if Slist[i] == "o":
            if anslist[-1] == "S":
                froflag = anslist[i-1]
            else:
                if anslist[i-1] == "S":
                    froflag = "W"
                else:
                    froflag = "S"
        else:
            if anslist[-1] == "S":
                if anslist[i-1] == "S":
                    froflag = "W"
                else:
                    froflag = "S"
            else:
                froflag = anslist[i-1]
if maeflag == anslist[-1] and froflag == anslist[0] and flag == 0:
    print("".join(anslist))
    flag = 1
      
anslist = []
maeflag = ""
froflag = ""
for i in range(N):
    if i == 0:
        anslist.append("W")
        if Slist[0] == "o":
            maeflag = "W"
        else:
            maeflag = "S"
    elif i == 1:
        anslist.append("S")
        if Slist[i] == "o":
            anslist.append("W")
        else:
            anslist.append("S")
    elif i < N-1:
        if Slist[i] == "o":
            if anslist[i] == "S":
                anslist.append(anslist[i-1])
            else:
                if anslist[i-1] == "S":
                    anslist.append("W")
                else:
                    anslist.append("S")
        else:
            if anslist[i] == "S":
                if anslist[i-1] == "S":
                    anslist.append("W")
                else:
                    anslist.append("S")
            else:
                anslist.append(anslist[i-1])
    else:
        if Slist[i] == "o":
            if anslist[-1] == "S":
                froflag = anslist[i-1]
            else:
                if anslist[i-1] == "S":
                    froflag = "W"
                else:
                    froflag = "S"
        else:
            if anslist[-1] == "S":
                if anslist[i-1] == "S":
                    froflag = "W"
                else:
                    froflag = "S"
            else:
                froflag = anslist[i-1]

if maeflag == anslist[-1] and froflag == anslist[0] and flag == 0:
    print("".join(anslist))
    flag = 1
    
anslist = []
maeflag = ""
froflag = ""
for i in range(N):
    if i == 0:
        anslist.append("W")
        if Slist[0] == "o":
            maeflag = "S"
        else:
            maeflag = "W"
    elif i == 1:
        anslist.append("W")
        if Slist[i] == "o":
            anslist.append("S")
        else:
            anslist.append("W")
    elif i < N-1:
        if Slist[i] == "o":
            if anslist[i] == "S":
                anslist.append(anslist[i-1])
            else:
                if anslist[i-1] == "S":
                    anslist.append("W")
                else:
                    anslist.append("S")
        else:
            if anslist[i] == "S":
                if anslist[i-1] == "S":
                    anslist.append("W")
                else:
                    anslist.append("S")
            else:
                anslist.append(anslist[i-1])
    else:
        if Slist[i] == "o":
            if anslist[-1] == "S":
                froflag = anslist[i-1]
            else:
                if anslist[i-1] == "S":
                    froflag = "W"
                else:
                    froflag = "S"
        else:
            if anslist[-1] == "S":
                if anslist[i-1] == "S":
                    froflag = "W"
                else:
                    froflag = "S"
            else:
                froflag = anslist[i-1]

if maeflag == anslist[-1] and froflag == anslist[0] and flag == 0:
    print("".join(anslist))
    flag = 1
    
if flag == 0:
    print(-1)
    

Measured memory_bytes: 58124