#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <stack>
#include <vector>
#include <queue>
#include <random>
#include <cstdint>
#include <bitset>
#include <iomanip>
#include <utility>
#include<map>
#include<functional>
#include<climits>
#include<regex>
using namespace std;
typedef long long ll;
const int mod = 1000000007;

int main() {
	int n;
	string s;
	cin >> n >> s;
	int ans = 0;
	for (int i = 0; i < n; i++) {
		if (s[i] == "R")ans++;
		else ans--;
	}
	if (ans > 0)cout << "Yes" << endl;
	else cout << "No" << endl;
}

