
-- C
local sub = string.sub
local n = io.read('*n', '*l')
local s = io.read('*l')
ss = {}
for i = 1, n do
	ss[i] = sub(s, i, i)
end
local ret = nil
if ss[1] == 'o' then
	ret = {
		{[1] = 1, [2] = 1, [n] = 1},
		{[1] = 1, [2] = 0, [n] = 0},
		{[1] = 0, [2] = 0, [n] = 1},
		{[1] = 0, [2] = 1, [n] = 0},
	}
else
	ret = {
		{[1] = 1, [2] = 1, [n] = 0},
		{[1] = 1, [2] = 1, [n] = 0},
		{[1] = 0, [2] = 0, [n] = 0},
		{[1] = 0, [2] = 1, [n] = 1},
	}
end
for i = 2, n-2 do
	for j = 1, 4 do
		local ans = ret[j]
		if ss[i] == 'o' then
			if ans[i] == 1 then
				ans[i + 1] = ans[i - 1]
			else
				ans[i + 1] = 1 - ans[i - 1]
			end
		else
			if ans[i] == 1 then
				ans[i + 1] = 1 - ans[i - 1]
			else
				ans[i + 1] = ans[i - 1]
			end
		end
	end
end

local function isOK(a, b, c, ch)
	if ch == "o" then
		if b == 1 then
			return a == c
		else
			return a ~= c
		end
	else
		if b == 1 then
			return a ~= c
		else
			return a == c
		end
	end
end

local sum = 0
local result = nil
for j = 1, 4 do
	local ans = ret[j]
	if isOK(ans[n-2], ans[n-1], ans[n], ss[n-1]) and isOK(ans[n-1], ans[n], ans[1], ss[n]) then
		sum = sum  + 1
		result = ans
		break
	end
end

if sum == 1 then
	for i = 1, n do
		result[i] = result[i] == 1 and "S" or "W"
	end
	print(table.concat(result))
else
	print(-1)
end