N = int(input()) if N % 2 == 0: S = "" for i in range(N//2): S += "1" else: S = "7" for i in range(N//2 - 1): S += "1" print(S)