N = int(input()) B = N // 2 ones = ["1" for i in range(B)] if N % 2 == 1: ones[0] = "7" ans = int("".join(ones)) print(ans)