package main

import "fmt"

func main() {
	var n int
	var s string
	fmt.Scan(&n, &s)
	r, b := 0, 0
	for _, ss := range s {
		if ss == 'R' {
			r++
		} else {
			b++
		}
	}
	if r > b {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}
}
