import sys n = int(input()) num_digit = n // 2 left = n % 2 out = "" for i in range(num_digit - 1): out = out + "1" if left: out = out + "7" else: out = out + "1" print(out)