fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let n: u32 = s.trim().parse().unwrap(); let mut s = String::from(if n % 2 == 0 { "1" } else { "7" }); (0..n / 2 - 1).for_each(|_| s.push('1')); println!("{}", s); }