fun main(args: Array<String>) {
    val N = readInputLine().toInt()
    val s = readInputLine().toCharArray()
    // 羊 : true, 狼 : false
    val ans = CharArray(N)
    
    // 1番目, 2番目を羊とする
    ans[0] = 'S'
    ans[1] = 'S'
    
    calc(ans, s, N)

    if (lastCheck(ans, s, N)) {
        printAns(ans)
        return
    }
    
    // 1番目を羊, 2番目を狼とする
    ans[0] = 'S'
    ans[1] = 'W'
    
    calc(ans, s, N)

    if (lastCheck(ans, s, N)) {
        printAns(ans)
        return
    }

    // 1番目を狼, 2番目を羊とする
    ans[0] = 'W'
    ans[1] = 'S'
    
    calc(ans, s, N)

    if (lastCheck(ans, s, N)) {
        printAns(ans)
        return
    }
    
    // 1番目, 2番目を狼とする
    ans[0] = 'W'
    ans[1] = 'W'
    
    calc(ans, s, N)

    if (lastCheck(ans, s, N)) {
        printAns(ans)
        return
    }
    
    println(-1)
}

fun calc(ans: CharArray, s: CharArray, N: Int) {
    for (i in 2 until N) {
        if (ans[i - 1] == 'S') {
            if (s[i - 1] == 'o') {
                ans[i] = ans[i - 2]
            } else {
                ans[i] = if (ans[i - 2] == 'S') 'W' else 'S'
            }
        } else {
            if (s[i - 1] == 'o') {
                ans[i] = if (ans[i - 2] == 'S') 'W' else 'S'
            } else {
                ans[i] = ans[i - 2]
            }
        }
    }    
}

fun readInputLine(): String {
    return readLine()!!
}

fun lastCheck(ans: CharArray, s: CharArray, N: Int): Boolean {
    var ok = true
    if (ans[N - 1] == 'S') {
        if (s[N - 1] == 'o') {
            ok = ok && (ans[N - 2] == ans[0])
        } else {
            ok = ok && (ans[N - 2] != ans[0])
        }
    } else {
        if (s[N - 1] == 'o') {
            ok = ok && (ans[N - 2] != ans[0])
        } else {
            ok = ok && (ans[N - 2] == ans[0])
        }
    }

    if (ans[0] == 'S') {
        if (s[0] == 'o') {
            ok = ok && (ans[N - 1] == ans[1])
        } else {
            ok = ok && (ans[N - 1] != ans[1])
        }
    } else {
        if (s[0] == 'o') {
            ok = ok && (ans[N - 1] != ans[1])
        } else {
            ok = ok && (ans[N - 1] == ans[1])
        }
    }
    
    return ok
}

fun printAns(ans: CharArray) {
    for (c in ans) {
        print(c)
    }

    println()
}
