line = readlines
len = line.length
i = 0

while i < len
    line[i] = line[i].chomp
    i += 1
end

N = line[0].to_i
S = line[1]

num_r = 0
for i in 1..N do
  if S[i-1] == "R" then
    num_r += 1
  else
    num_r -= 1
  end
end
  
if num_r > 0 then
  print "Yes"
else
  print "No"
end