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