N=int(input()) s="" for i in range(0,N//2): s+="1" print(s if N%2==0 else "7"+s[1:])