fun main(args: Array<String>) {
  val n = readLine()!!.toInt()
  val s = readLine()!!
  var ans = BooleanArray(n)
  
  for (i in 0..3) {
    (0..1).forEach { ans[it] = (i shr it and 1 == 1) }
    for (j in 0 until n) {
      ans[(j + 2) % n] = (ans[j] xor ans[(j + 1) % n] xor (s[(j + 1) % n] == 'o'))
    }
    if ((0..1).all { ans[it] == (i shr it and 1 == 1) }) {
      println(ans.map { if (it) 'S' else 'W' }.joinToString(""))
      return
    }
  }
  
  println(-1)
}
