class Circle
  def initialize(x, y, r)
    @x = x;
    @y = y;
    @r = r;
  end

  attr_reader :x, :y, :r
end

class Rectangle
  def initialize(w, h)
    @w = w;
    @h = h;
  end

  def contains?(circle)
    if circle.x < 0
      puts "No"
    elsif @w < circle.x
      puts "No"
    elsif circle.y < 0
      puts "No"
    elsif @h < circle.y
      puts "No"
    elsif circle.x < circle.r
      puts "No"
    elsif @w < circle.x + circle.r
      puts "No"
    elsif circle.y < circle.r
      puts "No"
    elsif @h < circle.y + circle.r
      puts "No"
    else
      puts "Yes"
    end
  end
end

nums_str = gets.split
nums = nums_str.map{|num_str| num_str.to_i}

rectangle = Rectangle.new(nums[0], nums[1])
circle = Circle.new(nums[2], nums[3], nums[4])

rectangle.contains?(circle);