N=int(input())
ans=[]

if N%2 ==0:
    s = N//2
    ans=[1]*s

else:
    s = N//2
    ans=[7]
    for i in range(s-1):
        ans.append(1)

print("".join([str(j) for j in ans]))