open Printf
let input_int_array n =
	Array.init n (fun _ -> Scanf.scanf " %d" (fun v -> v))

let get_int () = Scanf.scanf " %d" (fun v -> v)
let get_2_ints () = Scanf.scanf " %d %d" (fun u v -> u,v)
let get_3_ints () = Scanf.scanf " %d %d %d" (fun u v w -> u,v,w)
let get_4_ints () = Scanf.scanf " %d %d %d %d" (fun u v w x -> u,v,w,x)
let get_5_ints () = Scanf.scanf " %d %d %d %d %d" (fun u v w x y -> u,v,w,x,y)

let () =
	let n = get_int ()
	in let a = 
		Array.init n (fun _ -> Scanf.scanf " %c" (fun v -> v))
	in let b = Array.make n 0
	in
	let f,i,e = ref true,ref 0,[|0,0;0,1;1,1;1,0|] in
	while !f && !i<4 do
		let e0,e1 = e.(!i) in
		b.(0) <- e0; b.(1) <- e1;
		for j=2 to n-1 do
			b.(j) <- match b.(j-1),a.(j-1) with
				| 0,'o' | 1,'x' -> b.(j-2)
				| 0,'x' | 1,'o' -> 1-b.(j-2)
				| _ -> failwith ""
		done;
		f := not (
			let j = n in
			b.(0) = match b.(j-1),a.(j-1) with
			| 0,'o' | 1,'x' -> b.(j-2)
			| 0,'x' | 1,'o' -> 1-b.(j-2)
			| _ -> failwith ""
		);
;		i := !i+1;
	done;
	if not !f then (
		Array.iter (fun v -> print_string @@ if v=0 then "S" else "W") b; print_newline ()
	) else printf "-1\n"