N=int(input())
if N%2:	print(7, end=''); N-=3
for i in range(N//2): print(1, end='')
print()