local n = io.read("*n", "*l")
local s = io.read()
local t = {}
for i = 1, n do
  t[i] = s:sub(i, i) == "o"
end
local a = {}
for ia = 1, 4 do
  a[1] = ia % 2 == 1
  a[2] = 2 < ia
  for i = 2, n do
    if t[i] then
      if a[i] then
        a[i + 1] = a[i - 1]
      else
        a[i + 1] = not a[i - 1]
      end
    else
      if a[i] then
        a[i + 1] = not a[i - 1]
      else
        a[i + 1] = a[i - 1]
      end
    end
  end
  if a[1] == a[n + 1] then
    local v = true
    if t[1] then
      if a[1] then
        v = a[2] == a[n]
      else
        v = a[2] ~= a[n]
      end
    else
      if a[1] then
        v = a[2] ~= a[n]
      else
        v = a[2] == a[n]
      end
    end
    if v then
      for i = 1, n do
        io.write(a[i] and "S" or "W")
      end
      io.write("\n")
      os.exit()
    end
  end
end
print(-1)
