N = int(input()) q, r = divmod(N, 2) if r == 0: print("1" * q) else: print("7" + "1" * (q - 1))