fn main() { let mut n = String::new(); std::io::stdin().read_line(&mut n).ok(); let n: usize = n.trim().parse().unwrap(); if n == 0 { println!("9 1"); return; } if n == 1 { println!("26 2"); return; } println!("{} 1", 8+7+2+(2*n-1)*9); }