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: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

f=0
if x+r>w:
    f=1
if y+r>h:
    f=1
if r>x:
    f=1
if r>y:
    f=1
if f==0:
    print "Yes"
else:
    print "No"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W,H,x,y,r=map(int,raw_input().split())
if not(-100<=x and y<=100 and 0<W<=100 and 0<H<=100 and 0<r<=100):
    print("Constraits Errand")
    exit()
#elif x<=0 or y<=0 or  y-r<=H<=y+r or x-r<=W<=x+r or  y-r<=0<=y+r or x-r<=0<=x+r:
elif r<=x<=W-r and r<=y<= H-r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
cr = x+r
cl = x-r
ct = y+r
cb = y-r
if ct <= H and cb >= 0 and cl >= 0 and cr <= W:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
in_str = raw_input().split()
num = []
for s in in_str:
    num.append(int(s))
if(num[0] < num[2] or num[1] < num[3] or num[2] < 0 or num[3] < 0):
    print "No"
elif(num[0] < num[2]+num[4] or num[1] < num[3]+num[4] or num[2]-num[4] < 0 or num[3]-num[4] < 0):
    print "No"
else:
    print "Yes"

Submission status: Accepted

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: Accepted

Solution code:
arr = input().split(' ')
(W, H, x, y, r) = tuple([int(x) for x in arr])

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: Accepted

Solution code:
in_str = input().split(" ")
in_width = int(in_str[0])
in_hight = int(in_str[1])

in_x = int(in_str[2])
in_y = int(in_str[3])
in_r = int(in_str[4])

#x check
if (0 <= in_x - in_r) & (in_x + in_r <= in_width):
    #y check
    if (0 <= in_y - in_r) & (in_y + in_r <= in_hight):
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys

W,H,x,y,r = map(int,sys.stdin.readline().split())

if x+r > W or x-r < 0 or y+r > H or y-r < 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
w,h,x,y,r=map(int,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: Accepted

Solution code:
W, H, x, y, r = list(map(int, 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: Accepted

Solution code:
W,H,x,y,r = list(map(int, 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: Accepted

Solution code:
W,H,x,y,r = list(map(int, 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: Accepted

Solution code:
# -*- coding: utf-8 -*-

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
m = map(int,raw_input().split())
w = m[0]
h = m[1]
x = m[2]
y = m[3]
r = m[4]

if 2*r > w or 2*r >h:
 print "No"
else:
 if 0 < x + r <= w and 0 < y + r <= h:
  print "Yes"
 else:
  print "No"

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if x+r > w or x-r < 0 or y+r > h or y-r < 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

if x >= r and x <= W - r and y >= r and y <= H - r:
  print "Yes"
else:
  print "No"

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(x) for x in input().split()]
if (0 <= x-r <= W) and (0 <= x+r <= W):
    if(0 <= y-r <= H) and (0 <= y+r <= H):
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:

nums = map(int, raw_input().split())
WH = [nums[0], nums[1]]
xy = [nums[2], nums[3]]
r  = nums[4]

up    = xy[1] + r
low   = xy[1] - r
right = xy[0] + r
left  = xy[0] - r

if up > WH[1] or low < 0 or right > WH[0] or left < 0:
    print "No"
else:
    print "Yes"

Submission status: Accepted

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: Accepted

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

if x-r>=0 and x+r<=W:
  if y-r>=0 and y+r<=H:
    print 'Yes'
  else:
    print 'No'
else:
  print 'No'

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a=map(int,raw_input().split())


if 0<=a[2]-a[4] and a[2]+a[4]<=a[0] and 0<=a[3]-a[4] and a[3]+a[4]<=a[1]:
        print "Yes"
else:
    print "No"

Submission status: Accepted

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

if x < r or x + r > W or y < r or y + r >H :
  print "No"
else:
 print "Yes"

Submission status: Accepted

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

Submission status: Accepted

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

if r <= x and r <= y and x + r <= W and y + r <= H:
  print "Yes"
else:
  print "No"

Submission status: Accepted

Solution code:
m = map(int,raw_input().split())
if (0 <= m[2]-m[4])  and (m[2]+m[4] <= m[0]) and (0 <= m[3]-m[4]) and (m[3]+m[4] <= m[1]):
  print 'Yes'
else:
  print'No'

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, raw_input().split())
if x-r<0 or y-r<0:
    print"No"

elif x+r <= W and y+r <= H:
    print"Yes"
else:
    print"No"

Submission status: Accepted

Solution code:
import math
a = raw_input()
for i, b in enumerate(a.split()):
    if i==0:
        W=int(b)
    elif i==1:
        H=int(b)
    elif i==2:
        x=int(b)
    elif i==3:
        y=int(b)
    else:
        r=int(b)
if r<=x<=W-r and r<=y<=H-r:
    print 'Yes'
else:
    print 'No'

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

else:
  print "No"

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W,H,x,y,r = list(map(int, 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: Accepted

Solution code:
data = input().split()

for n in range(len(data)):
	data[n] = int(data[n])

W, H, x, y, r = data

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = raw_input().split(" ")
W = int(a[0])
H = int(a[1])
x = int(a[2])
y = int(a[3])
r = int(a[4])
if (x - r) >= 0 and (x + r) <= W and (y - r) >= 0 and (y + r) <= H:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
import sys

H,W,x,y,r = map(int, raw_input().split())

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

Submission status: Accepted

Solution code:
#coding: UTF-8

l = raw_input().split()

W = int(l[0])
H = int(l[1])
x = int(l[2])
y = int(l[3])
r = int(l[4])

if x >=r:
	if y >=r:
		if x <=(H -r):
			if y <=(H-r):
				print "Yes"
			else:
				print "No"
		else:
			print"No"
	else:
		print "No"

else:
	print "No"

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,raw_input().split())
if (x + r <= W) & (x - r >= 0) & (y + r <= H) & (y - r >= 0):
	print "Yes"
else:
	print "No"

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
#????????¢??????
if x-r<0:
	flag = 1
#????????¢??????
elif y-r<0:
	flag = 1
#????????¢??????
elif y+r>H:
	flag = 1
#????????¢??????
elif x+r>W:
	flag = 1

else:
	flag = 0

if flag:
	print("No")
else:
	print("Yes")

Submission status: Accepted

Solution code:
W,H,x,y,r = list(map(int, 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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
W,H,x,y,r = map(float,raw_input().split())
x_min = x-r
x_max=x+r
y_min=y-r
y_max=y+r

if x_min >= 0 and y_min >= 0 and x_max <= W and y_max <= H:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
a=map(int,raw_input().split())
if min(a[2],a[3])>=a[4] and a[2]+a[4]<=a[0] and a[3]+a[4]<=a[1]: print("Yes")
else:print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

list = map(int, raw_input().split())
W = list[0]
H = list[1]
x = list[2]
y = list[3]
r = list[4]

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

Submission status: Accepted

Solution code:
# encoding:utf-8
# W,H,x,y,r
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: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

x = raw_input()
W, H, x, y, r = x.split()
W = int(W)
H = int(H)
x = int(x)
y = int(y)
r = int(r)

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
W,H,x,y,r = map(int, input().split())

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

Submission status: Accepted

Solution code:
class CircleInaRectangle:
    def __init__(self, W, H, x, y, r):
        if 0 <= x - r and 0 <= y - r and x + r <= W and y + r <= H:
            print "Yes"
        else:
            print "No"

if __name__ == "__main__":
    W, H, x, y, r = map(int, raw_input().split())
    CircleInaRectangle(W, H, x, y, r)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = map(int,raw_input().split())
if a[4] <= a[2] and a[2] <= a[0] - a[4] and a[4] <= a[3] and a[3] <= a[1] - a[4] :
    print "Yes"
else :
    print "No"

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(map(int, input().split(' ')))

W = N[0]
H = N[1]
x = N[2]
y = N[3]
r = N[4]

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

Submission status: Accepted

Solution code:
n=raw_input()
k=n.split(" ")

W=int(k[0])
H=int(k[1])
x=int(k[2])
y=int(k[3])
r=int(k[4])
f=0

if 0<=x-r<=x+r<=W:
  if 0<=y-r<=y+r<=H:
    print "Yes"
    f=1
if f==0:
  print "No"

Submission status: Accepted

Solution code:

n=raw_input()
k=n.split(" ")

W=int(k[0])
H=int(k[1])
x=int(k[2])
y=int(k[3])
r=int(k[4])
f=0

if 0<=x-r<=x+r<=W:
  if 0<=y-r<=y+r<=H:
    print "Yes"
    f=1
if f==0:
  print "No"

Submission status: Accepted

Solution code:
W,H,x,y,r = (int(i) for i in input().split())
answer = "Yes"

if x - r < 0 :
    answer = "No"
elif y - r < 0 :
    answer = "No"
elif x + r > W :
    answer = "No"
elif y + r > H :
    answer = "No"

print(answer)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W, H, x, y, r = (int(i) for i in 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: Accepted

Solution code:
i = raw_input().strip().split()

W = int(i[0])
H = int(i[1])
x = int(i[2])
y = int(i[3])
r = int(i[4])

flag = True

if x-r < 0 or x+r > W:
    flag = False
elif y-r < 0 or y+r > H:
    flag = False

if flag:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
W,H,x,y,r = map(int,input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

W, H, x, y, r = map(int, sys.stdin.readline().split())
if((r <= x <= W-r) and (r <= y <= H-r)):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(a) for a in input().split()]

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

Submission status: Accepted

Solution code:
def mondai(W, H, x, y, r):
    if (x - r < 0 or
        x + r > W or
        y - r < 0 or
        y + r > H):
        print('No')
    else:
        print('Yes')

W, H, x, y, r = [int(x) for x in input().split()]
mondai(W, H, x, y, r)

Submission status: Accepted

Solution code:
# coding:utf-8
# ??????????????¢???????????????????????????

WHxyr = raw_input().split()

W = int(WHxyr[0])
H = int(WHxyr[1])
x = int(WHxyr[2])
y = int(WHxyr[3])
r = int(WHxyr[4])

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if x == 0 or y == 0 or x < 0 or y < 0:
    print("No")
elif W == x or H == y:
    print("No")

elif W < x or H < y:
    print("No")

elif W < x+r or H < y+r:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
	nums = input().split(" ") 
	width, height, x, y, r =[int(i) for i in nums]
	if 0 <= x - r and x + r <= width and 0 <= y - r and y + r <= height:
		return "Yes"
	else:
		return "No"
if __name__ == '__main__':
  print(main())

Submission status: Accepted

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: Accepted

Solution code:
W,H,x,y,r=[int(x) for x in input().split()]
print("No" if x < r or y < r or (x+r) > W or (y+r) > H else "Yes")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = input().split()
W = int(n[0])
H = int(n[1])
x = int(n[2])
y = int(n[3])
r = int(n[4])

if x+r > W:
    print('No')
else:
    if y+r > H:
        print('No')
    elif x < 0 or y < 0:
        print('No')
    else:
        print('Yes')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = list(map(int, input().split()))

W = num[0]
H = num[1]
x = num[2]
y = num[3]
r = num[4]

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

W, H, x, y, r = map(int, raw_input().split())
if 0<=x<=W and 0<=y<=H and W>=x+r and H>=y+r:
    print "Yes"
else:
    print "No"

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

Solution code:
a=input()
b=a.split(" ")
c=list(map(int,b))
w=c[0]
h=c[1]
x=c[2]
y=c[3]
r=c[4]
if((x-r)<0 or (x+r)>w or (y-r)<0 or (y+r)>h):
    str="No"
else :
    str="Yes"
print(str)

Submission status: Accepted

Solution code:
# coding: utf-8
w, h, x, y, r = map(int, input().split(' '))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = map(int, raw_input().split())
w = a[0]
h = a[1]
x = a[2]
y = a[3]
r = a[4]
if x+r <= w and x-r >= 0 and y+r <= h and y-r >= 0:
    print 'Yes'
else:
    print 'No'

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
W,H,x,y,r = [int(s) for s in input().split()]
if 0 <= (x-r) <= (x+r) <= W:
    if 0 <= (y-r) <= (y+r) <= H:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, 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: Accepted

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

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(i) for i in input().split()]
if x < 0 or y < 0:
    print("No")
elif x+r <= W and y+r <= H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
X, Y, x, y, r =[int(i) for i in input().split()]
if (0 <= (y-r) and (y+r) <= Y) and (0 <= (x-r) and (x+r) <= X):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    w, h, x, y, r = [int(i) for i in input().split()]
    if x - r >= 0 and x + r <= w and y - r >= 0 and y + r <= h:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
W,H,x,y,r = [int(i) for i in input().split()]

if x-r < 0 or x+r > W:
    print("No")

elif y-r < 0 or y+r > H:
    print("No")

elif x < r:
    print("No")

elif y < r:
    print("No")

else:
    print("Yes")

Submission status: Accepted

Solution code:
W, H, x, y ,r = [int(i) for i in input().split()]

if x <= 0 or y <= 0:
    print("No")
elif W - x >= r and H - y >= r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
zz = input().split()

W = int( zz[0])
H = int( zz[1])
x = int( zz[2])
y = int( zz[3])
r = int( zz[4])

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

Submission status: Accepted

Solution code:
W, H, x, y ,r = [int(i) for i in input().split()]
 
if x <= 0 or y <= 0:
    print("No")
elif W - x >= r and H - y >= r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

if 0 <= x <= W and 0 <= y <= H:
    rect = [(0, 0), (0, H), (W, 0), (W, H)]
    for a, b in rect:
        if min(abs(a-x), abs(b-y)) < r:
            print "No"
            break
    else:
        print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(i) for i in input().split()]

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

else:
   print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(i) for i in input().split()]


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

Submission status: Accepted

Solution code:
W,H,x,y,r = [int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
W,H,x,y,r = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
W, H, x, y, r = [int(i) for i in input().split()]
if x - r >= 0 and x + r <= W and y - r >= 0 and y + r <= H:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import string
L = string.split(raw_input())
W = int(L[0])
H = int(L[1])
x = int(L[2])
y = int(L[3])
r = int(L[4])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input().split()
W = int(n[0])
H = int(n[1])
x = int(n[2])
y = int(n[3])
r = int(n[4])

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

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

Submission status: Accepted

Solution code:
a = input()
b = a.split(' ')
W = int(b[0])
H = int(b[1])
x = int(b[2])
y = int(b[3])
r = int(b[4])

if  -100 <= x < 0:
    print('No')
elif -100 <= y < 0:
    print('No')
elif W >= x + r and H >= y + r:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
w, h, x, y, r = [int(x) for x in input().split()]
if x + r <= w and x - r >= 0 and y + r <= h and y - r >= 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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: Accepted

Solution code:
WHxyr = input().split()
W = int(WHxyr[0])
H = int(WHxyr[1])
x = int(WHxyr[2])
y = int(WHxyr[3])
r = int(WHxyr[4])


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: UTF-8
# ????????¢?????????????????????????????????????????????????????°????????????????????????????????????
# ????????¢?????????????????????????????¨??????????????????????????§?¨? (W,H) ????????????????????????
# ????????????????????????????????§?¨? (x,y) ??¨?????? r ??§?????????????????????

W, H, x, y, r = map(int, raw_input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

data = sys.stdin.readline().strip().split(' ')
w = int(data[0])
h = int(data[1])
x = int(data[2])
y = int(data[3])
r = int(data[4])

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