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