#!/bin/env python
# coding: utf-8

import sys

def main():
    N = int(sys.stdin.readline().strip())
    s = sys.stdin.readline().strip()
    R = s.count('R')
    B = s.count('B')
    if R > B:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()
