num = int(input())

x = num % 2
i = num // 2

if x == 0:
    print("1" * i)
    
else:
    print("7" + "1" * (i - 1))