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