use std::process::exit; use proconio::input_interactive; fn main() { input_interactive! { n: usize } for i in 0..2 * n { let command = if i % 2 == 0 { 'D' } else { 'R' }; println!("{command}"); input_interactive! { v: i8 } match v { -1 | 1 => exit(0), _ => (), } } }