n=int(input())
ke=0
if n%2==0:
    ke="".join(["1" for _ in range(n//2)])
else:
    ke="7"+"".join(["1" for _ in range(n//2-1)])
print(ke+"\n")