N=int(input())
#print(N)

if N%2==0:
    for i in range(N//2):
        print("1",end="")
else:
    print("7",end="")
    for i in range(N//2-1):
        print("1",end="")