fn read() -> String { let mut buf = String::new(); std::io::stdin() .read_line(&mut buf) .expect("failed to read line."); buf.trim().to_string() } fn read_vec() -> Vec where ::Err: std::fmt::Debug, { read() .split_whitespace() .map(|x| x.parse().expect("failed to parse.")) .collect::>() } fn main() { let p = read_vec::()[0]; println!("{} {}", 1, p); }