n = int(input()) temp = int(n / 2) remain = n % 2 li = [] for i in range(temp): li.append('1') if remain: li[0] = '7' print("".join(li))