N = int(input())
M = str()
if N % 2 == 0:
    M += '1'*(N//2)
else:
    M += '7' + '1'*((N-3)//2)

print(M)