N=int(input())

if N%2==1:
    S="7"
    S+="1"*((N-2)//2)
else:
    S=""
    S+="1"*(N//2)

print(S)