fun main(args:Array<String>){
  var n = readLine()!!.toInt()
  var s = readLine()!!.toCharArray()
  var r = 0
  var b = 0
  for(i in 0..n-1){
    if(s[i].equals('R')) r++
    else b++
  }
  
  if(r>b){
    println("Yes")
  }
  else{
    println("No")
  }
}