object Main extends App{
  val sc = new java.util.Scanner(System.in)
  val N= sc.nextInt
  val s = sc.next
  val Rcount = s.filter(_=='R').length
  val Bcount = s.filter(_=='B').length
  val ans = if(Rcount > Bcount){"Yes"}else{"No"}
  println(ans)
}
