import std.algorithm;
import std.array;
import std.conv;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main ()
{
	string s;
	while ((s = readln.strip) != "")
	{
		s = readln.strip;
		writeln (s.count ('R') > s.count ('B') ? "Yes" : "No");
	}
}
