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, 71, 10, 1, 0, 64, 10, 1, 0, 61, 10, 1, 0, 61, 10, 1, 0, 63, 10, 1, 0, 66, 10, 1, 0, 71, 10, 1, 0, 77, 10, 1, 0, 84, 20, 1, 0, 111, 11, 1, 0, 95, 11, 1, 0, 86, 11, 1, 0, 82, 11, 1, 0, 82, 11, 1, 0, 84, 11, 1, 0, 89, 11, 1, 0, 95, 11, 1, 0, 102, 11, 1, 0, 112, 21, 1, 0, 149, 12, 1, 0, 134, 12, 1, 0, 117, 12, 1, 0, 110, 12, 1, 0, 109, 12, 1, 0, 111, 12, 1, 0, 116, 12, 1, 0, 123, 12, 1, 0, 133, 12, 1, 0, 145, 22, 1, 0, 189, 12, 1, 0, 85, 12, 1, 0, 93, 13, 1, 0, 178, 13, 1, 0, 151, 13, 1, 0, 140, 13, 1, 0, 137, 13, 1, 0, 139, 13, 1, 0, 144, 13, 1, 0, 153, 13, 1, 0, 164, 13, 1, 0, 178, 23, 1, 0, 230, 13, 1, 0, 103, 14, 1, 0, 212, 14, 1, 0, 186, 14, 1, 0, 176, 14, 1, 0, 174, 14, 1, 0, 178, 14, 1, 0, 186, 14, 1, 0, 197, 14, 1, 0, 212, 14, 1, 0, 231, 24, 1, 0, 303, 14, 1, 0, 136, 14, 1, 0, 150, 14, 1, 0, 166, 14, 1, 0, 185, 14, 1, 0, 207, 14, 1, 0, 233, 14, 1, 0, 264, 14, 1, 0, 299, 14, 1, 0, 340, 34, 3, 14, 1, 0, 264, 34, 2, 14, 1, 0, 233, 34, 4, 14, 1, 0, 166, 34, 4, 14, 1, 0, 125, 34, 5, 14, 1, 0, 101, 34, 5, 33, 8]; 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() { } }