N=int(input()) if N%2>0:O='7' else:O='1' O+='1'*(N//2-1) print(O)