Problem:


  MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});

Circle in a Rectangle

  Write a program which reads a rectangle and a circle, and determines whether the circle is arranged inside the rectangle. As shown in the following figures, the upper right coordinate $(W, H)$ of the rectangle and the central coordinate $(x, y)$ and radius $r$ of the circle are given.

Input

  Five integers $W$, $H$, $x$, $y$ and $r$ separated by a single space are given in a line.

Output

  Print "Yes" if the circle is placed inside the rectangle, otherwise "No" in a line.

Constraints

  
$ -100  \leq x, y \leq 100$

  
$ 0  < W, H, r \leq 100$

Sample Input 1

5 4 2 2 1

Sample Output 1

Yes

Sample Input 2

5 4 2 4 1

Sample Output 2

No



Sample input:
5 4 2 2 1


Sample output:
Yes

Submission status: Runtime Error

Solution code:
W, H, x, y, r = int(input().split())
if(x < r || y < r):
    print("No")
elif(x > (W - r) || y > (H - r)):
    print("No")
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
W, H, x, y, r = int(input().split())
if(x < r or y < r):
    print("No")
elif(x > (W - r) or y > (H - r)):
    print("No")
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
w,h,x,y,r=map(int,input().split())

a=x-r
ap=x+r

b=y-r
bp=y+r
if a>0 and ap<w and b>0 and bp<h:
	print(“Yes”)
else:
	print(“No”)

Submission status: Runtime Error

Solution code:
w,h,x,y,r=map(int,input().split())

a=x-r
ap=x+r

b=y-r
bp=y+r
if a>0 and ap<w and b>0 and bp<h :
	print(“Yes”)
else :
	print(“No”)

Submission status: Runtime Error

Solution code:
w,h,x,y,r=map(int,input().split())

a=x-r
ap=x+r

b=y-r
bp=y+r
if a<0 or ap>w or b<0 or bp>h :
	print(“Yes”)
else :
	print(“No”)

Submission status: Runtime Error

Solution code:
w,h,x,y,r,=map(int,input().split())

a=x-r
ap=x+r

b=y-r
bp=y+r
if a>0 and ap<w and b>0 and bp<h:
	print(“Yes”)
else:
	print(“No”)

Submission status: Runtime Error

Solution code:
w,h,x,y,r=map(int,input().split())
a=x-r
ap=x+r
b=y-r
bp=y+r
if a>0 and ap<w and b>0 and bp<h:
	print(“Yes”)
else:
	print(“No”)

Submission status: Runtime Error

Solution code:
a, b = input().split()
x = int(a)
y = int(b)

if x < y:
    print("a < b")
elif x > y:
    print("a > b")
elif x == y:
    print("a == b")

Submission status: Runtime Error

Solution code:
W, H, x, y, r = map(int,input().split())

right =  x + abs(r)
left = x - abs(r)
top = y + abs(r)
bottom = y - abs(r)

if right < W and left >= 0 and top < H  and bottom >= 0:
  print("Yes")
 else:
  print("No")

Submission status: Runtime Error

Solution code:
#coding:utf-8

elements[] = input().split()
w = elements[0]
h = elements[1]
x = elements[2]
y = elements[3]
r = elements[4]

if x<0 OR y<0:
    print("No")

elif x>=r AND y>=r AND x+r<=w AND y+r<=h:
        print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
#coding:utf-8

elements[] = input().split()
w = elements[0]
h = elements[1]
x = elements[2]
y = elements[3]
r = elements[4]

if x<=0 OR y<=0:
    print("No")

elif x>=r AND y>=r:
    if x+r<=w AND y+r<=h:
        print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
w=int(input())
h=int(input())
x=int(input())
y=int(input())
r=int(input())
if w >=h >= x >= y >= r:
print("Yes")
else:
print("No")

Submission status: Runtime Error

Solution code:
w=int(n[0])
h=int(n[1])
x=int(n[2])
y=int(n[3])
r=int(n[4])
if w>h and h>x and x>y and y>r:
   print("Yes")
else:
   print("No")

Submission status: Runtime Error

Solution code:
w,h,x,y,r = input().split()
print(['No','Yes'][r<=x & x<=w-r & r<=y & y<=h-r]

Submission status: Runtime Error

Solution code:
w,h,x,y,r = input().split()
print(['No','Yes'][r<=x and x<=w-r and r<=y and y<=h-r]

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(input().split())
print(['No','Yes'][r<=x & x<=w-r & r<=y & y<=h-r]

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(input().split())
print(['No','Yes'][r<=x and x<=w-r and r<=y and y<=h-r]

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(input().split())
print(['No','Yes'][(r<=x<=w-r)*(r<=y<=h-r)]

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(input().split())
print(['No','Yes'][r<=x<=w-r & r<=y<=h-r])

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(input().split())
print(['No','Yes'][r<=x<=w-r and r<=y<=h-r])

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(input().split())
print(['No','Yes'][(r<=x<=w-r)*(r<=y<=h-r)])

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(int,input().split())
print(['No','Yes'][(r<=x<=w-r)*(r<=y<=h-r)])in

Submission status: Runtime Error

Solution code:
W,H,x,y,r = map(int,input().split())

if W > r + x and H > r + y and x => r and y => r  :
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
W,H,x,y,r = map(int,input().split())

if x-r < 0:
    print "No"
elif x + r > W:
    print "No"
elif y-r < 0:
    print "No"
elif y+r > H:
    print "No"
else:
    print "Yes"

Submission status: Runtime Error

Solution code:
W,H,x,y,r=map(int, input().split())
if r=<x=<(W-r) and r=<y=<(H-r):
	print("Yes")
else:
	print("No")

Submission status: Runtime Error

Solution code:
W , H, x, y、r = map(int, input().split())

if r <= x <= W -r:
    if r <= y ,= H -r:
        print("Yes")

else:
    print("No")

Submission status: Runtime Error

Solution code:
W , H, x, y、r = map(int, input().split())

if (r <= x <= W -r) and (r <= y ,= H -r):
    print("Yes")

else:
    print("No")

Submission status: Runtime Error

Solution code:
W , H, x, y、r = map(int, input().split())

if r <= x <= W -r) and (r <= y <= H -r):

    print("Yes")

else:
    print("No")

Submission status: Runtime Error

Solution code:
W , H, x, y、r = map(int, input().split())

if r <= x and x <= W -r and r <= y and y<= H -r:

    print("Yes")

else:
    print("No")

Submission status: Runtime Error

Solution code:
W , H, x, y、r = map(int, input().split())

if r <= x and x <= (W -r) and r <= y and y<= (H -r):

    print("Yes")

else:
    print("No")

Submission status: Runtime Error

Solution code:
W, H, x, y, r = map(int, input().split())

if r < x and r < y and y < (h-r) and x < (W-r):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(int, input().split())

a = "n"

if (x > r) and (y > r):
    if(x+r < w) and (y+r < h):
        a = "y"


if a = "y":
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:

w,h,x,y,r = map(int, input().split())

a = true

if x<r or w-r<x:
    a = false

if y<r or h-r<y:
    a = false


if a = true:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(int, input().split())

a = true

if x<r or w-r<x:
    a = false

if y<r or h-r<y:
    a = false


if a = true:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(int, input().split())

a = True

if x < r or w - r < x :
    a = False

if y < r or h - r < y :
    a = False


if a = True:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
W,H,x,y,r = int(input().splite())
if x+r < W and y+r < H :
	print('Yes')
else:
	print('No')

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':
  x = input().split(' ')
  W = x[0]
  H = x[1]
  x = x[2]
  y = x[3]
  r = x[4]
  if x - r < 0 or x + r > W:
    print('No')
  if y - r < 0 or y + r > H:
      print('No')
  else:
    print('Yes')

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':
  z = input().split(' ')
  W = z[0]
  H = z[1]
  x = z[2]
  y = z[3]
  r = z[4]
  if x - r < 0 or x + r > W:
    print('No')
  if y - r < 0 or y + r > H:
    print('No')
  else:
    print('Yes')

Submission status: Runtime Error

Solution code:
input = '5 4 2 2 1'#W,H,x,y,r
w, h, x, y, r = input1.split()

top = y + r
bottom = y - r
left = x - r
right = x + r

if h >= top and bottom >= and right >= top and left >= 0:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
w,h,x,y,r=map(int,input().split())
if x<r or y<r or x+r>w or y+r>h:
    print("No")
else:

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(int,input().split())
if x >= r and x =< w-r and y >= r and y =< h-r:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
w,h,x,y,r = map(int, raw_input().split())

if 0 <= x - r and x + r <= w and 0 <= y - r and y + r <= h:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
W, H ,x, y, r = map(int,input().split())
if r <= x and x <= W-r and r <= y and y <= H-r:
    print(Yes)
else:print(No)

Submission status: Runtime Error

Solution code:
W,H,x,y,r=map(int,input().split())
W=-r;H=-r;
if min(x,y)>=r and x<=W and y<=H:
    print(Yes)
else:
    print(No)

Submission status: Runtime Error

Solution code:
W,H,x,y,r=map(int,input().split())
W=-r;H=-r;
if min([x,y])>=r and x<=W and y<=H:
    print(Yes)
else:
    print(No)

Submission status: Runtime Error

Solution code:
W,H,x,y,r=map(int,input().split())
W=-r;H=-r;
if r<=x and r<=y and x<=W and y<=H:
    print(Yes)
else:
    print(No)

Submission status: Runtime Error

Solution code:
W,H,x,y,r=map(int,input().split())
W=-r;H=-r;
if min([x,y]>=r)and x<=W and y<=H:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
W,H,x,y,r=map(int,input().split())
if min([x,y]>=r)and x<=(W-r) and y<=(H-r):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
# Circle in a Rectangle

a = [int(i) for i in input().rstrip().split()]
rectangle = [a[0], a[1]]
circleCenter = [a[2], a[3]]
circleRadius = a[4]

if a[2] - a[4] >= 0 and a[2] + a[4] <= a[0]:
    if a[3] - [4] >= 0 and a[3] + a[4] <= a[1]:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: WA: Presentation Error

Solution code:
import warnings

data = map(float, raw_input().split())

w = data[0]
h = data[1]
x = data[2]
y = data[3]
r = data[4]

if (x > r and x < (w - r) and y > r and y < (h - r)):
	print "Yes\n"
else:
	print "No\n"

Submission status: WA: Presentation Error

Solution code:
def cinr(i):
    tmp = (i.split(" "))
    W = int(tmp[0])
    H = int(tmp[1])
    x = int(tmp[2])
    y = int(tmp[3])
    r = int(tmp[4])

    if x >= 0 + r and x <= W - r and y >= 0 + r and y <= H  - r:
        print("Yes\n")
    else:
        print("No\n")
    return 0

if __name__ == "__main__":
    ret = cinr(input())