use std::io::{self, BufRead}; fn main() { let input = io::stdin() .lock() .lines() .map(std::result::Result::unwrap) .collect::>(); let n = input[0].parse::().unwrap(); println!("{}{}", "7".repeat(n % 2), "1".repeat(n / 2 - n % 2)); }