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, 77, 10, 1, 0, 69, 10, 1, 0, 66, 10, 1, 0, 66, 10, 1, 0, 68, 10, 1, 0, 71, 10, 1, 0, 77, 10, 1, 0, 83, 20, 1, 0, 127, 11, 1, 0, 110, 11, 1, 0, 97, 11, 1, 0, 93, 11, 1, 0, 91, 11, 1, 0, 94, 11, 1, 0, 97, 11, 1, 0, 104, 11, 1, 0, 113, 21, 1, 0, 172, 12, 1, 0, 156, 12, 1, 0, 134, 12, 1, 0, 124, 12, 1, 0, 121, 12, 1, 0, 123, 12, 1, 0, 129, 12, 1, 0, 135, 12, 1, 0, 146, 22, 1, 0, 219, 12, 1, 0, 85, 12, 1, 0, 93, 13, 1, 0, 204, 13, 1, 0, 170, 13, 1, 0, 156, 13, 1, 0, 152, 13, 1, 0, 152, 13, 1, 0, 159, 13, 1, 0, 168, 13, 1, 0, 179, 23, 1, 0, 267, 13, 1, 0, 102, 14, 1, 0, 245, 14, 1, 0, 210, 14, 1, 0, 196, 14, 1, 0, 193, 14, 1, 0, 196, 14, 1, 0, 204, 14, 1, 0, 217, 14, 1, 0, 234, 24, 1, 0, 352, 14, 1, 0, 137, 14, 1, 0, 148, 14, 1, 0, 163, 14, 1, 0, 181, 14, 1, 0, 201, 14, 1, 0, 225, 14, 1, 0, 253, 14, 1, 0, 286, 14, 1, 0, 325, 34, 1, 14, 1, 0, 325, 34, 3, 14, 1, 0, 253, 34, 3, 14, 1, 0, 201, 34, 5, 14, 1, 0, 137, 34, 6, 14, 1, 0, 71, 34, 4, 33, 9, 32, 10, 31, 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() { } }