import java.util.Scanner

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val n = sc.nextInt()
    val s = sc.next().map { it }
    val separate = s.partition { it == 'R' }
    if (separate.first.size > separate.second.size) {
        println("Yes")
    } else {
        println("No")
    }
}