n = int(input())

while n >= 5:
    print(1,end='')
    n -= 2

if n == 4:
    print(11)
elif n == 3:
    print(7)
elif n == 2:
    print(1)