import java.io.*
import java.util.*
import java.lang.*
import java.lang.Math.*


data class CharPair(val first: Char, val second: Char)

fun pattern(S: String, tail: Char, head: Char): String {
    val N = S.length
    var t1 = Array<Char>(N){'_'}
    t1[N-1] = tail
    t1[0] = head
    var ok = true
    for (i in 0 until N) {
        val ip1 = (i+1)%N
        val im1 = (i-1+N)%N
        when(CharPair(t1[i], S[i])) {
            CharPair('S', 'o') -> {
                if (t1[ip1] == '_' || t1[ip1] == t1[im1]) {
                    t1[ip1] = t1[im1]
                } else {
                    ok = false
                }
            }
            CharPair('S', 'x') -> {
                if (t1[ip1] == '_' || t1[ip1] != t1[im1]) {
                    t1[ip1] = if (t1[im1] == 'S') 'W' else 'S'
                } else {
                    ok = false
                }
            }
            CharPair('W', 'o') -> {
                if (t1[ip1] == '_' || t1[ip1] != t1[im1]) {
                    t1[ip1] = if (t1[im1] == 'S') 'W' else 'S'
                } else {
                    ok = false
                }
            }
            CharPair('W', 'x') -> {
                if (t1[ip1] == '_' || t1[ip1] == t1[im1]) {
                    t1[ip1] = t1[im1]
                } else {
                    ok = false
                }
            }
        }
    }

    return if (ok) t1.joinToString("") else ""
}

fun solve() {
    val N = rd.readInt()
    val S = rd.readString()
    assert(S.length == N){"S.length == N"}

    val sw = arrayOf('S', 'W')
    for (i in 0..1) {
        for (j in 0..1) {
            val ans = pattern(S, sw[i], sw[j])
            if (ans != "") {
                println(ans)
                return
            }
        }
    }

    println(-1)
}


//val rd = debug.Reader("arc", "069", "b", "sample-1")
val rd = Reader()


fun main(args: Array<String>) {
    try {
        var exception: Throwable? = null
        val sth = Thread(null, SolveThread(), "solveThread", 128 * 1024 * 1024)
        sth.setUncaughtExceptionHandler { _, e -> exception = e }
        sth.start(); sth.join()
        if (exception != null) throw exception!!
    } catch (e: Exception) { throw e }
}
const val MOD = 1_000_000_007L; const val INF = Int.MAX_VALUE/2; const val LINF = Long.MAX_VALUE/2
data class IntPair(val first: Int, val second: Int)
val errPrintln: (Any) -> Unit = { msg -> System.err.println(msg) }
fun rAssert(exp: Boolean, lazyMsg: () -> String = {""}) {
    if (!exp) { val msg = lazyMsg(); errPrintln("EAssert Error: $msg"); throw Error(msg) }
}
fun tAssert(exp: Boolean, lazyMsg: () -> String = {""}) {
    if (!exp) { val msg = lazyMsg(); errPrintln("TAssert Error: $msg"); Thread.sleep(3000) }
}
class SolveThread : Runnable {
    override fun run() { solve() }
}
class Reader {
    private val br = BufferedReader(InputStreamReader(System.`in`))
    val readString: () -> String = { br.readLine() }
    val readInt: () -> Int = { br.readLine().toInt() }
    val readLong: () -> Long = { br.readLine().toLong() }
    val readIntArray: () -> IntArray = { br.readLine().split(' ').map { it.toInt() }.toIntArray() }
    val readLongArray: () -> LongArray = { br.readLine().split(' ').map { it.toLong() }.toLongArray() }
    val readListInt: () -> List<Int> = { br.readLine().split(' ').map { it.toInt() } }
    val readListLong: () -> List<Long> = { br.readLine().split(' ').map { it.toLong() } }
}


Measured memory_bytes: 56096