use std::io;

fn main() {
    let mut buf = String::new();
    io::stdin().read_line(&mut buf).unwrap();
    buf.clear();
    io::stdin().read_line(&mut buf).unwrap();

    let (r, b) = buf
        .chars()
        .fold((0, 0) |(r, b), c| {
            match c {
                'R' => r += 1,
                'B' => b += 1,
            }

            (r, b)
        });

    if r > b {
        println!("Yes");
    } else {
        println!("No");
    }
}
