global S,ans



def check_at(i):

  global S,ans



  if ans[i] == "S":

    if (S[i] == "o" and ans[i-1] != ans[i+1]) or (S[i] == "x" and ans[i-1] == ans[i+1]):

      return True

  else:

    if (S[i] == "o" and ans[i-1] == ans[i+1]) or (S[i] == "x" and ans[i-1] != ans[i+1]):

      return True



N = int(eval(input()))

S = eval(input())



opposite = {"S": "W",

            "W": "S"}



for ans in ["SS","SW","WS","WW"]:

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

    if ans[i] == "S" and S[i] == "o":

      ans += ans[i-1]

    elif ans[i] == "S" and S[i] == "x":

      ans += opposite[ans[i-1]]

    elif ans[i] == "W" and S[i] == "o":

      ans += opposite[ans[i-1]]

    elif ans[i] == "W" and S[i] == "x":

      ans += ans[i-1]

  

  if (not check_at(-1)) and (not check_at(0)):

    print(ans)

    break

else:

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

S = eval(input())



opposite = {"S": "W",

            "W": "S"}



for ans in ["SS","SW","WS","WW"]:

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

    if ans[i] == "S" and S[i] == "o":

      ans += ans[i-1]

    elif ans[i] == "S" and S[i] == "x":

      ans += opposite[ans[i-1]]

    elif ans[i] == "W" and S[i] == "o":

      ans += opposite[ans[i-1]]

    elif ans[i] == "W" and S[i] == "x":

      ans += ans[i-1]

  

  for i in [-1,0]:

    if ans[i] == "S":

      if (S[i] == "o" and ans[i-1] != ans[i+1]) or (S[i] == "x" and ans[i-1] == ans[i+1]):

        break

    else:

      if (S[i] == "o" and ans[i-1] == ans[i+1]) or (S[i] == "x" and ans[i-1] != ans[i+1]):

        break

  else:

    print(ans)

    break

else:

  print((-1))
global S, ans


def check_at(i):
    global S, ans
    if ans[i] == "S":
        if (S[i] == "o" and ans[i - 1] != ans[i + 1]) or (
            S[i] == "x" and ans[i - 1] == ans[i + 1]
        ):
            return True
    else:
        if (S[i] == "o" and ans[i - 1] == ans[i + 1]) or (
            S[i] == "x" and ans[i - 1] != ans[i + 1]
        ):
            return True


N = int(eval(input()))
S = eval(input())
opposite = {"S": "W", "W": "S"}
for ans in ["SS", "SW", "WS", "WW"]:
    for i in range(1, N - 1):
        if ans[i] == "S" and S[i] == "o":
            ans += ans[i - 1]
        elif ans[i] == "S" and S[i] == "x":
            ans += opposite[ans[i - 1]]
        elif ans[i] == "W" and S[i] == "o":
            ans += opposite[ans[i - 1]]
        elif ans[i] == "W" and S[i] == "x":
            ans += ans[i - 1]
    if (not check_at(-1)) and (not check_at(0)):
        print(ans)
        break
else:
    print((-1))

N = int(eval(input()))
S = eval(input())
opposite = {"S": "W", "W": "S"}
for ans in ["SS", "SW", "WS", "WW"]:
    for i in range(1, N - 1):
        if ans[i] == "S" and S[i] == "o":
            ans += ans[i - 1]
        elif ans[i] == "S" and S[i] == "x":
            ans += opposite[ans[i - 1]]
        elif ans[i] == "W" and S[i] == "o":
            ans += opposite[ans[i - 1]]
        elif ans[i] == "W" and S[i] == "x":
            ans += ans[i - 1]
    for i in [-1, 0]:
        if ans[i] == "S":
            if (S[i] == "o" and ans[i - 1] != ans[i + 1]) or (
                S[i] == "x" and ans[i - 1] == ans[i + 1]
            ):
                break
        else:
            if (S[i] == "o" and ans[i - 1] == ans[i + 1]) or (
                S[i] == "x" and ans[i - 1] != ans[i + 1]
            ):
                break
    else:
        print(ans)
        break
else:
    print((-1))

-global S, ans - - -def check_at(i): -    global S, ans -    if ans[i] == "S": -        if (S[i] == "o" and ans[i - 1] != ans[i + 1]) or ( -            S[i] == "x" and ans[i - 1] == ans[i + 1] -        ): -            return True -    else: -        if (S[i] == "o" and ans[i - 1] == ans[i + 1]) or ( -            S[i] == "x" and ans[i - 1] != ans[i + 1] -        ): -            return True - - -    if (not check_at(-1)) and (not check_at(0)): +    for i in [-1, 0]: +        if ans[i] == "S": +            if (S[i] == "o" and ans[i - 1] != ans[i + 1]) or ( +                S[i] == "x" and ans[i - 1] == ans[i + 1] +            ): +                break +        else: +            if (S[i] == "o" and ans[i - 1] == ans[i + 1]) or ( +                S[i] == "x" and ans[i - 1] != ans[i + 1] +            ): +                break +    else: