import sys
input=lambda:sys.stdin.readline().rstrip()
N=int(input())
print('7'*(N%2)+'1'*(N//2-N%2))