fn getline() -> String{ let mut __ret=String::new(); std::io::stdin().read_line(&mut __ret).ok(); return __ret; } fn main(){ let s=getline(); let x:u64=s.trim().parse().unwrap(); print!("{} ",4*x*x + 2); }