function main(input) { const N = parseInt(input.trim()); if (N == 2) { return "1"; } else if (N == 3) { return "7"; } if (N % 2 == 0) { return "1".repeat(N / 2); } else { return "7" + "1".repeat((N - 3) / 2); } } // Don't edit this line! console.log(main(require("fs").readFileSync("/dev/stdin", "utf8")));