object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt()
  val s = sc.next().map(_ == 'o')
  val c = Array.fill(4, n)(false)
  for (i <- 0 to 3) {
    val a0 = (i & 1) == 1
    val a1 = ((i >> 1) & 1) == 1
    c(i)(0) = a0
    c(i)(1) = a1
    for (j <- 2 until n) {
      c(i)(j) = c(i)(j-2) ^ c(i)(j-1) ^ s(j-1)
    }
  }
  c.find(a => !(a(n-1) ^ a(0) ^ a(1) ^ s(0) || a(n-2) ^ a(n-1) ^ a(0) ^ s(n-1))) match {
    case Some(a) => println(a.map(if (_) 'S' else 'W').mkString)
    case None => println(-1)
  }
}