local n = io.read("*n", "*l")
local str = io.read()
local t = {}
for i = 1, n do
  t[i] = str:sub(i, i) == "o" and true or false
end
local found = false
for c = 1, 4 do
  local res = {}
  res[1] = c <= 2
  res[2] = c % 2 == 0
  for i = 3, n do
    if res[i - 1] then
      res[i] = t[i - 1] == res[i - 2]
    else
      res[i] = t[i - 1] ~= res[i - 2]
    end
  end
  local cand = false
  if res[n] then
    cand = t[n] == res[n - 1]
  else
    cand = t[n] ~= res[n - 1]
  end
  if res[1] == cand then
    for k = 1, n do
      io.write(res[k] and "S" or "W")
    end
    io.write("\n")
    found = true
    break
  end
end
if not found then print(-1) end
