N = int(input())
digit = N // 2
remain = N % 2
if remain == 1:
    result = '7'
else:
    result = '1'
for i in range(digit-1):
    result += '1'
print(result)