N = input()
if N % 2 == 0:
	print str(1)*(N/2)
else:
	print str(7)+str(1)*((N/2)-1)