object Main{
	def main(args:Array[String]){
		val s = new java.util.Scanner(System.in)
		val n=s.nextInt
		val t=s.next
		val a= (0 to n-1).filter(i=>t(i)=='R')
		val b= (0 to n-1).filter(i=>t(i)=='B')
		println(if(a.size>b.size)"Yes" else "No")
	}
}