a=int(input()) if a%2!=0: print("7", end="") for i in range(0,(a//2)-1): print("1", end="") else: for i in range(0,a//2): print("1", end="")