line = gets.to_i
puts '1' * (line / 2) if line.even?
puts '7' + '1' * (line / 2 - 1) if line.odd?