n = int(input())
x = n // 2

if n % 2 == 0:
    print('1' * x)

else:
    print('7' + '1' * (x-1))