N = int(input())
S = 0
if N%2==1:
  S += 7
  N -= 3
while N>0:
  S *= 10
  S += 1
  N -= 2
print(S)