2000.times do
  puts 400.times.map{"LURD"[rand(0..3)]}*''
  STDOUT.flush
  exit if gets.to_i == -1
end