use std::fmt::Write as fmtWrite; use std::io::*; const NAMES: [&str; 5] = ["hand", "lily", "factory", "casino", "grimoire"]; fn main() { let mut output = String::with_capacity(2000000); 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, 14, 1, 0, 351, 14, 1, 0, 401, 23, 1, 0, 86, 13, 1, 0, 4, 13, 1, 0, 5, 13, 1, 0, 6, 13, 1, 0, 8, 13, 1, 0, 9, 13, 1, 0, 11, 13, 1, 0, 14, 13, 1, 0, 17, 13, 1, 0, 20, 13, 1, 0, 24, 22, 1, 0, 3, 12, 12, 0, 1, 12, 1, 0, 1, 12, 1, 0, 2, 21, 1, 11, 2]; 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!(output, "click").unwrap(), 1 => writeln!(output, "enhclick").unwrap(), x if x < 20 => writeln!(output, "buy {}", NAMES[x % 10]).unwrap(), x if x < 30 => writeln!(output, "reinforce {}", NAMES[x % 10]).unwrap(), _ => {}, } } } writeln!(stdout(), "{}", output).unwrap(); stdout().flush().unwrap(); let stdin = stdin(); let stdin = stdin.lock(); let mut lines = stdin.lines(); while let Some(Ok(_)) = lines.next() { } }