object Main extends App {
  var num = readInt
    var get = readLine
  var r = 0
  var b = 0
  for(i <- 0  to num-1) {
    if(get.charAt(i)=='R')
    r+=1
    else
    b+=1
  }
  if(r>b)
      println("Yes")
  else
  println("NO")
    }