let () = Scanf.scanf "%d\n%s" @@ fun n s ->
  print_endline @@
  if
    ( < ) 0
    @@ Array.fold_left (fun acc c ->
      acc + if c = 'R' then 1 else -1) 0
    @@ Array.init n @@ String.get s
  then "Yes"
  else "No"
