N=int(input())
x=""

if N % 2 == 0:
 for i in range(int(N/2)):
  x+="1"

else:
 x+="7"
 for i in range(int(N//2-1)):
  x+="1"

print(x)