a = int(input())
num ="1"

if a%2 == 1:
    num = "7"
for i in range(0,int(a/2)-1):
    num += "1"   
print(num)