import java.util.Scanner

object Main {
  val sc = new Scanner(System.in)
  def main (args: Array[String]): Unit={
    val n = sc.nextInt
    val s = sc.next
    val r = s.split("(?<=.)").count(_ == "R")
    val b = n - r
    println(if(r > b) "Yes" else "No")
  }
}

