def main():

    N = int(eval(input()))

    s = eval(input())

    # c = ["WS", "SW", "SS", "WW"]

    c = ["SW", "WS", "SS", "WW"]

    ok = False

    for tmp in c:

        ans = tmp

        for i in range(1, N):

            if s[i] == "o":# oの時

                if ans[i-1] == "S" and ans[i] == "S":

                    ans += "S"

                elif ans[i-1] == "W" and ans[i] == "S":

                    ans += "W"

                elif ans[i-1] == "S" and ans[i] == "W":

                    ans += "W"

                elif ans[i-1] == "W" and ans[i] == "W":

                    ans += "S"

            else:# xの時

                if ans[i-1] == "S" and ans[i] == "S":

                    ans += "W"

                elif ans[i-1] == "W" and ans[i] == "S":

                    ans += "S"

                elif ans[i-1] == "S" and ans[i] == "W":

                    ans += "S"

                elif ans[i-1] == "W" and ans[i] == "W":

                    ans += "W"

    

        if ans[0] == ans[-1]:

            if ans[0] == "S":

                if s[0] == "o":

                    if (ans[-2] == "S" and ans[1] == "S") or (ans[-2] == "W" and ans[1] == "W"):

                        ok = True

                else:

                    if (ans[-2] == "S" and ans[1] == "W") or (ans[-2] == "W" and ans[1] == "S"):

                        ok = True

            else:

                if s[0] == "o":

                    if (ans[-2] == "S" and ans[1] == "W") or (ans[-2] == "W" and ans[1] == "S"):

                        ok = True

                else:

                    if (ans[-2] == "S" and ans[1] == "S") or (ans[-2] == "W" and ans[1] == "W"):

                        ok = True

        if ok:

            print((ans[:-1]))

            # print(len(ans))

            break

    if not ok:

        print((-1))



if __name__ == "__main__":

    main()
def main():

    N = int(eval(input()))

    s = eval(input())

    c = ["SW", "WS", "SS", "WW"]

    o_ = {"SS": "S", "WS": "W", "SW": "W", "WW": "S"}

    x_ = {"SS": "W", "WS": "S", "SW": "S", "WW": "W"}

    _o_ = ["SSS", "WSW", "SWW", "WWS"]

    _x_ = ["WSS", "SSW", "SWS", "WWW"]

    ok = False

    for tmp in c:

        ans = tmp

        for i in range(1, N):

            if s[i] == "o": # oの時

                ans += o_[ans[-2:]]

            else:           # xの時

                ans += x_[ans[-2:]]

    

        if ans[0] == ans[-1]:

            jud = ans[-2:] + ans[1]

            if s[0] == "o":

                if jud in _o_:

                    ok = True

            else:

                if jud in _x_:

                    ok = True

        if ok:

            print((ans[:-1]))

            break

    if not ok:

        print((-1))



if __name__ == "__main__":

    main()
def main():
    N = int(eval(input()))
    s = eval(input())
    # c = ["WS", "SW", "SS", "WW"]
    c = ["SW", "WS", "SS", "WW"]
    ok = False
    for tmp in c:
        ans = tmp
        for i in range(1, N):
            if s[i] == "o":  # oの時
                if ans[i - 1] == "S" and ans[i] == "S":
                    ans += "S"
                elif ans[i - 1] == "W" and ans[i] == "S":
                    ans += "W"
                elif ans[i - 1] == "S" and ans[i] == "W":
                    ans += "W"
                elif ans[i - 1] == "W" and ans[i] == "W":
                    ans += "S"
            else:  # xの時
                if ans[i - 1] == "S" and ans[i] == "S":
                    ans += "W"
                elif ans[i - 1] == "W" and ans[i] == "S":
                    ans += "S"
                elif ans[i - 1] == "S" and ans[i] == "W":
                    ans += "S"
                elif ans[i - 1] == "W" and ans[i] == "W":
                    ans += "W"
        if ans[0] == ans[-1]:
            if ans[0] == "S":
                if s[0] == "o":
                    if (ans[-2] == "S" and ans[1] == "S") or (
                        ans[-2] == "W" and ans[1] == "W"
                    ):
                        ok = True
                else:
                    if (ans[-2] == "S" and ans[1] == "W") or (
                        ans[-2] == "W" and ans[1] == "S"
                    ):
                        ok = True
            else:
                if s[0] == "o":
                    if (ans[-2] == "S" and ans[1] == "W") or (
                        ans[-2] == "W" and ans[1] == "S"
                    ):
                        ok = True
                else:
                    if (ans[-2] == "S" and ans[1] == "S") or (
                        ans[-2] == "W" and ans[1] == "W"
                    ):
                        ok = True
        if ok:
            print((ans[:-1]))
            # print(len(ans))
            break
    if not ok:
        print((-1))


if __name__ == "__main__":
    main()

def main():
    N = int(eval(input()))
    s = eval(input())
    c = ["SW", "WS", "SS", "WW"]
    o_ = {"SS": "S", "WS": "W", "SW": "W", "WW": "S"}
    x_ = {"SS": "W", "WS": "S", "SW": "S", "WW": "W"}
    _o_ = ["SSS", "WSW", "SWW", "WWS"]
    _x_ = ["WSS", "SSW", "SWS", "WWW"]
    ok = False
    for tmp in c:
        ans = tmp
        for i in range(1, N):
            if s[i] == "o":  # oの時
                ans += o_[ans[-2:]]
            else:  # xの時
                ans += x_[ans[-2:]]
        if ans[0] == ans[-1]:
            jud = ans[-2:] + ans[1]
            if s[0] == "o":
                if jud in _o_:
                    ok = True
            else:
                if jud in _x_:
                    ok = True
        if ok:
            print((ans[:-1]))
            break
    if not ok:
        print((-1))


if __name__ == "__main__":
    main()

-    # c = ["WS", "SW", "SS", "WW"] +    o_ = {"SS": "S", "WS": "W", "SW": "W", "WW": "S"} +    x_ = {"SS": "W", "WS": "S", "SW": "S", "WW": "W"} +    _o_ = ["SSS", "WSW", "SWW", "WWS"] +    _x_ = ["WSS", "SSW", "SWS", "WWW"] -                if ans[i - 1] == "S" and ans[i] == "S": -                    ans += "S" -                elif ans[i - 1] == "W" and ans[i] == "S": -                    ans += "W" -                elif ans[i - 1] == "S" and ans[i] == "W": -                    ans += "W" -                elif ans[i - 1] == "W" and ans[i] == "W": -                    ans += "S" +                ans += o_[ans[-2:]] -                if ans[i - 1] == "S" and ans[i] == "S": -                    ans += "W" -                elif ans[i - 1] == "W" and ans[i] == "S": -                    ans += "S" -                elif ans[i - 1] == "S" and ans[i] == "W": -                    ans += "S" -                elif ans[i - 1] == "W" and ans[i] == "W": -                    ans += "W" +                ans += x_[ans[-2:]] -            if ans[0] == "S": -                if s[0] == "o": -                    if (ans[-2] == "S" and ans[1] == "S") or ( -                        ans[-2] == "W" and ans[1] == "W" -                    ): -                        ok = True -                else: -                    if (ans[-2] == "S" and ans[1] == "W") or ( -                        ans[-2] == "W" and ans[1] == "S" -                    ): -                        ok = True +            jud = ans[-2:] + ans[1] +            if s[0] == "o": +                if jud in _o_: +                    ok = True -                if s[0] == "o": -                    if (ans[-2] == "S" and ans[1] == "W") or ( -                        ans[-2] == "W" and ans[1] == "S" -                    ): -                        ok = True -                else: -                    if (ans[-2] == "S" and ans[1] == "S") or ( -                        ans[-2] == "W" and ans[1] == "W" -                    ): -                        ok = True +                if jud in _x_: +                    ok = True -            # print(len(ans))