function Main(input) { let N = Number(input), syou = Math.floor(N / 2), str = (N % 2) ? "7" : "1" for (let i = syou - 1; i; i--) str += "1" console.log(Number(str)) } Main(require("fs").readFileSync("/dev/stdin", "utf8"));