import java.io.BufferedReader
import java.io.InputStream
import java.io.InputStreamReader
import java.io.PrintWriter
import java.lang.StringBuilder
import java.util.*

fun PrintWriter.solve(sc: FastScanner) {
    val n = sc.nextInt()
    val s = sc.nextLine()
    for (i1 in 0..1) {
        for (i2 in 0..1) {
            val a = Array(n) { false }
            a[0] = i1 == 1
            a[1] = i2 == 1
            for (i in 1 until n - 1) {
                if ((s[i] == 'o' && a[i]) || (s[i] == 'x' && !a[i])) {
                    a[i + 1] = a[i - 1]
                }
                if ((s[i] == 'o' && !a[i]) || (s[i] == 'x' && a[i])) {
                    a[i + 1] = !a[i - 1]
                }
            }
            var ok = true
            if ((s[0] == 'o' && a[0]) || (s[0] == 'x' && !a[0])) {
                if (a[1] != a[n - 1]) ok = false
            }
            if ((s[0] == 'o' && !a[0]) || (s[0] == 'x' && a[0])) {
                if (a[1] == a[n - 1]) ok = false
            }
            if ((s[n - 1] == 'o' && a[n - 1]) || (s[n - 1] == 'x' && !a[n - 1])) {
                if (a[0] != a[n - 2]) ok = false
            }
            if ((s[n - 1] == 'o' && !a[n - 1]) || (s[n - 1] == 'x' && a[n - 1])) {
                if (a[0] == a[n - 2]) ok = false
            }
            if (ok) {
                println(a.map { if (it) "S" else "W" }.joinToString(""))
                return
            }
        }
    }
    println(-1)
}

fun main(args: Array<String>) {
    val writer = PrintWriter(System.out, false)
    writer.solve(FastScanner(System.`in`))
    writer.flush()
}

class FastScanner(s: InputStream) {
    private var st = StringTokenizer("")
    private val br = BufferedReader(InputStreamReader(s))

    fun next(): String {
        while (!st.hasMoreTokens()) st = StringTokenizer(br.readLine())

        return st.nextToken()
    }

    fun nextInt() = next().toInt()
    fun nextLong() = next().toLong()
    fun nextLine() = br.readLine()
    fun nextDouble() = next().toDouble()
    fun ready() = br.ready()
}
