N=int(input())
if N%2==0:
    a=""
    for i in range(N//2):
        a+="1"
    print(int(a))
else:
    a="7"
    for i in range(N//2-1):
        a+="1"
    print(a)