print((function (n) local i, f = math.modf(n/2) return string.format("%d%s", f == 0 and 1 or 7, string.rep("1", i-1)) end)(io.stdin:read("*n")))