n=int(input()) if n%2==0: ans=int("1"*(n//2)) elif n==1: print(1) else: ans=int("7"+"1"*(n//2-1)) print(ans)