N = int(input())

if (N % 2) == 0:
    print("".join(["1"] * (N // 2)))
else:
    print("7" + "".join(["1"] * ((N // 2) - 1)))