fn main() { let mut n = String::new(); std::io::stdin().read_line(&mut n).ok(); let n: usize = n.trim().parse().unwrap(); let count = n / 2; for i in 0..count { if i == 0 && n % 2 == 1 { print!("7"); } else { print!("1"); } } println!(""); }