use std::io::*; const NAMES: [&str; 5] = ["hand", "lily", "factory", "casino", "grimoire"]; fn main() { let mut output = Vec::with_capacity(3000000); let xs = [0, 15, 1, 1, 0, 75, 10, 1, 0, 74, 10, 1, 0, 66, 10, 1, 0, 63, 10, 1, 0, 64, 10, 1, 0, 65, 10, 1, 0, 69, 10, 1, 0, 74, 10, 1, 0, 80, 10, 1, 0, 87, 20, 1, 0, 111, 11, 1, 0, 99, 11, 1, 0, 89, 11, 1, 0, 85, 11, 1, 0, 85, 11, 1, 0, 87, 11, 1, 0, 92, 11, 1, 0, 98, 11, 1, 0, 106, 11, 1, 0, 116, 21, 1, 0, 149, 12, 1, 0, 139, 12, 1, 0, 121, 12, 1, 0, 114, 12, 1, 0, 113, 12, 1, 0, 115, 12, 1, 0, 120, 12, 1, 0, 128, 12, 1, 0, 138, 12, 1, 0, 150, 22, 1, 0, 189, 12, 1, 0, 88, 12, 1, 0, 97, 13, 1, 0, 184, 13, 1, 0, 156, 13, 1, 0, 145, 13, 1, 0, 142, 13, 1, 0, 144, 13, 1, 0, 149, 13, 1, 0, 158, 13, 1, 0, 170, 13, 1, 0, 184, 23, 1, 0, 230, 13, 1, 0, 107, 14, 1, 0, 220, 14, 1, 0, 192, 14, 1, 0, 182, 14, 1, 0, 180, 14, 1, 0, 184, 14, 1, 0, 192, 14, 1, 0, 204, 14, 1, 0, 220, 14, 1, 0, 239, 24, 1, 0, 303, 14, 1, 0, 141, 14, 1, 0, 155, 14, 1, 0, 172, 14, 1, 0, 192, 14, 1, 0, 215, 14, 1, 0, 241, 14, 1, 0, 273, 14, 1, 0, 309, 34, 1, 14, 1, 0, 309, 34, 3, 14, 1, 0, 241, 34, 4, 14, 1, 0, 172, 34, 3, 14, 1, 0, 141, 34, 6, 14, 1, 0, 105, 34, 4]; for i in 0..xs.len() / 2 { let x = xs[i * 2]; let c = xs[i * 2 + 1]; for _ in 0..c { match x { 0 => writeln!(&mut output, "click").unwrap(), 1 => writeln!(&mut output, "enhclick").unwrap(), x if x < 20 => writeln!(&mut output, "buy {}", NAMES[x % 10]).unwrap(), x if x < 30 => writeln!(&mut output, "reinforce {}", NAMES[x % 10]).unwrap(), x if x < 40 => writeln!(&mut output, "sell {}", NAMES[x % 10]).unwrap(), _ => {}, } } } let stdout = stdout(); let mut stdout = stdout.lock(); stdout.write_all(&output).unwrap(); stdout.flush().unwrap(); let stdin = stdin(); let stdin = stdin.lock(); let mut lines = stdin.lines(); while let Some(Ok(_)) = lines.next() { } }