#![allow(unused, non_snake_case, dead_code, non_upper_case_globals)]
#![macro_use]

use std::cmp::*;
use std::collections::*;
use std::io::*;
use std::mem::*;
use std::num::*;
use std::slice::*;

fn main() {
    let mut io = IO::new(stdin(), stdout(), stderr());
    // ===================================== //
    let n: usize = io.read();
    let mut s = io.chars();
    let k = s[0];
    s.push(k);

    let mut vv = vec![false; n + 2];
    vv[0] = true;
    vv[1] = true;
    for i in 1..n + 1 {
        if (s[i] == 'o' && !vv[i]) || (s[i] == 'x' && vv[i]) {
            vv[i + 1] = vv[i - 1];
        } else {
            vv[i + 1] = !vv[i - 1];
        }
    }
    io.debug(&vv);
    if vv[0] == vv[n] && vv[1] == vv[n + 1] {
        for i in 0..n {
            io.write(if vv[i] { "W" } else { "S" });
        }
        return;
    }

    let mut vv = vec![false; n + 2];
    vv[0] = true;
    vv[1] = false;
    for i in 1..n + 1 {
        if (s[i] == 'o' && !vv[i]) || (s[i] == 'x' && vv[i]) {
            vv[i + 1] = vv[i - 1];
        } else {
            vv[i + 1] = !vv[i - 1];
        }
    }
    io.debug(&vv);
    if vv[0] == vv[n] && vv[1] == vv[n + 1] {
        for i in 0..n {
            io.write(if vv[i] { "W" } else { "S" });
        }
        return;
    }
    let mut vv = vec![false; n + 2];
    vv[0] = false;
    vv[1] = false;
    for i in 1..n + 1 {
        if (s[i] == 'o' && !vv[i]) || (s[i] == 'x' && vv[i]) {
            vv[i + 1] = vv[i - 1];
        } else {
            vv[i + 1] = !vv[i - 1];
        }
    }
    io.debug(&vv);
    if vv[0] == vv[n] && vv[1] == vv[n + 1] {
        for i in 0..n {
            io.write(if vv[i] { "W" } else { "S" });
        }
        return;
    }
    let mut vv = vec![false; n + 2];
    vv[0] = false;
    vv[1] = true;
    for i in 1..n + 1 {
        if (s[i] == 'o' && !vv[i]) || (s[i] == 'x' && vv[i]) {
            vv[i + 1] = vv[i - 1];
        } else {
            vv[i + 1] = !vv[i - 1];
        }
    }
    io.debug(&vv);
    if vv[0] == vv[n] && vv[1] == vv[n + 1] {
        for i in 0..n {
            io.write(if vv[i] { "W" } else { "S" });
        }
        return;
    }
    io.writeln("-1");
}

// IO
struct IO<R: Read, W: Write, E: Write> {
    Read: R,
    Write: BufWriter<W>,
    Error: BufWriter<E>,
}
impl<R: Read, W: Write, E: Write> IO<R, W, E> {
    fn new(r: R, w: W, e: E) -> IO<R, W, E> {
        IO {
            Read: r,
            Write: BufWriter::new(w),
            Error: BufWriter::new(e),
        }
    }
    fn read<T>(&mut self) -> T
    where
        T: std::str::FromStr,
    {
        let next: String = self
            .Read
            .by_ref()
            .bytes()
            .map(|c| c.unwrap() as char)
            .skip_while(|c| c.is_whitespace())
            .take_while(|c| !c.is_whitespace())
            .collect();
        next.parse().ok().unwrap()
    }
    fn chars(&mut self) -> Vec<char> {
        self.read::<String>().chars().collect()
    }
    fn readn<T: std::str::FromStr>(&mut self, n: usize) -> Vec<T> {
        (0..n).map(|_| self.read::<T>()).collect::<Vec<_>>()
    }
    fn readmat<T: std::str::FromStr>(&mut self, n: usize, m: usize) -> Vec<Vec<T>> {
        (0..n).map(|_| self.readn(m)).collect()
    }
    fn write<S: ToString>(&mut self, val: S) {
        self.Write.write(val.to_string().as_bytes());
    }
    fn writeln<S: ToString>(&mut self, val: S) {
        self.Write.write(val.to_string().as_bytes());
        self.Write.write(b"\n");
    }
    fn debug<S: std::fmt::Debug>(&mut self, val: S) {
        writeln!(self.Error, "(debug) {:?}", &val);
    }
}


Measured memory_bytes: 4476