#!/usr/bin/python3

import math
import sys


DEBUG = False


def inp():
    return sys.stdin.readline().rstrip()


def dprint(*value, sep=' ', end='\n'):
    if DEBUG:
        print(*value, sep=sep, end=end)


def solve(N, S):
    return S.count('R') > S.count('B')


def main():
    N = int(inp())
    S = inp()
    print('Yes' if solve(N, S) else 'No')


if __name__ == '__main__':
    main()
