N = int(input()) if N % 2 == 0: N //= 2 print("1"*N) else: N -= 3 N //= 2 print("7", end="") print("1"*N)