n = int(input())
s = input()
flag = False
for i in range(4):
    if i == 0:
        ans = 'SS'
        past = 'S'
        cur = 'S'
        for j in range(1,n-1):
            if cur == 'S':
                if s[j] == 'o':
                    if past == 'S':
                        ans += 'S'
                    else:
                        ans += 'W'
                        past = 'S'
                        cur = 'W'
                else:
                    if past == 'S':
                        ans += 'W'
                        cur = 'W'
                    else:
                        ans += 'S'
                        past = 'S'
            else:
                if cur == 'W':
                    if s[j] == 'o':
                        if past == 'S':
                            ans += 'W'
                            past = 'W'
                        else:
                            ans += 'S'
                            cur = 'S'
                    else:
                        if past == 'S':
                            ans += 'S'
                            past = 'W'
                            cur = 'S'
                        else:
                            ans += 'W'
        if ans[len(ans)-1] == 'S':
            if s[n-1] == 'o':
                if ans[0] == ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
            else:
                if ans[0] != ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
        else:
            if s[n-1] == 'o':
                if ans[0] != ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
            else:
                if ans[0] == ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
    elif i == 1:
        ans = 'SW'
        past = 'S'
        cur = 'W'
        for j in range(1,n-1):
            if cur == 'S':
                if s[j] == 'o':
                    if past == 'S':
                        ans += 'S'
                    else:
                        ans += 'W'
                        past = 'S'
                        cur = 'W'
                else:
                    if past == 'S':
                        ans += 'W'
                        cur = 'W'
                    else:
                        ans += 'S'
                        past = 'S'
            else:
                if cur == 'W':
                    if s[j] == 'o':
                        if past == 'S':
                            ans += 'W'
                            past = 'W'
                        else:
                            ans += 'S'
                            cur = 'S'
                    else:
                        if past == 'S':
                            ans += 'S'
                            past = 'W'
                            cur = 'S'
                        else:
                            ans += 'W'
        if ans[len(ans)-1] == 'S':
            if s[n-1] == 'o':
                if ans[0] == ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
            else:
                if ans[0] != ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
        else:
            if s[n-1] == 'o':
                if ans[0] != ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
            else:
                if ans[0] == ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
    elif i == 2:
        ans = 'WS'
        past = 'W'
        cur = 'S'
        for j in range(1,n-1):
            if cur == 'S':
                if s[j] == 'o':
                    if past == 'S':
                        ans += 'S'
                    else:
                        ans += 'W'
                        past = 'S'
                        cur = 'W'
                else:
                    if past == 'S':
                        ans += 'W'
                        cur = 'W'
                    else:
                        ans += 'S'
                        past = 'S'
            else:
                if cur == 'W':
                    if s[j] == 'o':
                        if past == 'S':
                            ans += 'W'
                            past = 'W'
                        else:
                            ans += 'S'
                            cur = 'S'
                    else:
                        if past == 'S':
                            ans += 'S'
                            past = 'W'
                            cur = 'S'
                        else:
                            ans += 'W'
        if ans[len(ans)-1] == 'S':
            if s[n-1] == 'o':
                if ans[0] == ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
            else:
                if ans[0] != ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
        else:
            if s[n-1] == 'o':
                if ans[0] != ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
            else:
                if ans[0] == ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
    else:
        ans = 'WW'
        past = 'W'
        cur = 'W'
        for j in range(1,n-1):
            if cur == 'S':
                if s[j] == 'o':
                    if past == 'S':
                        ans += 'S'
                    else:
                        ans += 'W'
                        past = 'S'
                        cur = 'W'
                else:
                    if past == 'S':
                        ans += 'W'
                        cur = 'W'
                    else:
                        ans += 'S'
                        past = 'S'
            else:
                if cur == 'W':
                    if s[j] == 'o':
                        if past == 'S':
                            ans += 'W'
                            past = 'W'
                        else:
                            ans += 'S'
                            cur = 'S'
                    else:
                        if past == 'S':
                            ans += 'S'
                            past = 'W'
                            cur = 'S'
                        else:
                            ans += 'W'
        if ans[len(ans)-1] == 'S':
            if s[n-1] == 'o':
                if ans[0] == ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
            else:
                if ans[0] != ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
        else:
            if s[n-1] == 'o':
                if ans[0] != ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
            else:
                if ans[0] == ans[len(ans)-2]:
                    if s[0] == 'o':
                        if ans[1] != ans[len(ans)-1]:
                            flag = True
                            break
                    else:
                        if ans[1] == ans[len(ans)-1]:
                            flag = True
                            break
if flag:
    print(ans)
else:
    print(-1)


Measured memory_bytes: 3832