<?php
$max = fgets(STDIN);
$data = fgets(STDIN);

$count = 0;
$max = strlen( $data );
for( $i =0; $i<$max; $i++ )
{
  if( $data[$i] == "R" ) { $count++; }
  else { $count--; }
}

$result = "No";
if( $count > 0 ) { $result = "Yes"; }
echo $result;
?>