use std::io::*; fn main() { let mut s: String = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let mut n: usize = itr.next().unwrap().parse().unwrap(); let mut out = Vec::new(); if n & 1 == 1 { write!(out, "{}", 7).ok(); n -= 3; } for _ in 0..n / 2 { write!(out, "{}", 1).ok(); } stdout().write_all(&out).unwrap(); }