is_easy = {
 1 => {'R' => true,'L'=> false, 'D'=> true,'U' => true},
 0 => {'R' => false,'L'=> true, 'D'=> true,'U' => true}
}

string = STDIN.gets.chomp
all_easy_steps = string.split(//).map.with_index{|x, i| is_easy[(i+1)%2][x] }.all?
puts (all_easy_steps ? "Yes" : "No")
