N=int(input()) k=N//2 if N%2==0: print("1"*k) else: print("7"+"1"*(k-1))