N = gets.to_i
if N % 2 == 1 then
	print 7
	N -= 3
end
puts "1" * (N / 2)