function main()
  local n = tonumber(io.read())
  local s = io.read()

  local animals = {{true, true}, {true, false}, {false, true}, {false, false}}
  for i = 1, #animals do
    for j = 3, n do
      if animals[i][j-1] == (string.sub(s, j-1, j-1) == "o") then
        animals[i][j] = animals[i][j-2]
      else
        animals[i][j] = not animals[i][j-2]
      end
    end
    if (animals[i][n] == (string.sub(s, n, n) == "o")) == (animals[i][n-1] == animals[i][1]) then
      local str = ""
      for j = 1, n do
        if animals[i][j] then
          str = str .. "S"
        else
          str = str .. "W"
        end
      end
      print(str)
      return 0
    end
  end

  print(-1)
end

main()
