class Calc0083
  def initialize(args)
    args = args.map { |l| l.chomp.split(/\s+/) }
    @n = args.shift.first.to_i
  end

  def run
    if @n % 2 == 0
      '1' * (@n / 2)
    else
      '7' + '1' * (@n / 2 - 1)
    end
  end
end

puts Calc0083.new(STDIN.readlines).run if __FILE__ == $0