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