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:
num = map(int, raw_input().split())
W = num[0]
H = num[1]
x = num[2]
y = num[3]
r = num[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:
inl=map(int, raw_input().split())

if inl[0]>=inl[2]+inl[4] and inl[2]-inl[4]>=0 and inl[1]>=inl[3]+inl[4] and inl[3]-inl[4]>=0:
  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 (x >= r and y >= r and (x + r) <= W and (y + r) <= H):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

x_max=int(x+r)
x_min=int(x-r)
y_max=int(y+r)
y_min=int(y-r)

#print(x_max,x_min,y_max,y_min)


if y_max > h:
    print("No")
else:
    if y_min < 0:
        print("No")
    else:
        if x_max > w:
            print("No")
        else:
            if x_min < 0:
                print("No")
            else:
                print("Yes")

Submission status: Accepted

Solution code:
W,H,x,y,r = list(map(int,input().split()))
if (r<=x<=W-r)&(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 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 and x + r <= w and 0 <= y - r and y + r <= h:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
input_line = input()
# W,H,x,y,r
input_data = input_line.strip().split(' ')

W, H, x, y, r = [int(i) for i in input_data]

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:
input_data = input().split(' ')

W, H, x, y, r = [int(i) for i in input_data]

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

Submission status: Accepted

Solution code:
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_2_D

# W,H,x,y,r
input_data = input().split(' ')

W, H, x, y, r = [int(i) for i in input_data]

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

Submission status: Accepted

Solution code:
input_data = input().split(' ')

W, H, x, y, r = [int(i) for i in input_data]

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

Submission status: Accepted

Solution code:
a,b,c,d,r=map(int,input().split())

if a>0:
	if c<0:
		print("No")
		exit()

if a<0:
	if c>0:
		print("No")
		exit()		

if b>0:
	if d<0:
		print("No")
		exit()

if b>0:
	if d<0:
		print("No")
		exit()

a=abs(a)
b=abs(b)
c=abs(c)
d=abs(d)

a-=r*2
b-=r*2
c-=r
d-=r

if 0<=c and 0<=d and 0<=a and 0<=b and c<=a and d<=b:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
whxyr = input().split()
[w, h, x, y, r] = [int(x) for x in whxyr]
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

def Circle(W,H,x,y,r):
    if x <= W - r and x >= r and y <= H-r and y >= r:
        return "Yes"
    else:
        return "No"

if __name__=="__main__":
    a = input().split(" ")
    ans = Circle(int(a[0]),int(a[1]),int(a[2]),int(a[3]),int(a[4]))
    print(ans)

Submission status: Accepted

Solution code:
list = map(int, raw_input().split())
x0 = list[2] - list[4]
y0 = list[3] - list[4]
x1 = list[2] + list[4]
y1 = list[3] + list[4]

if x0 >= 0 and y0 >= 0 and x1 <= list[0] and y1 <= list[1]:
    print "Yes"
else :
    print "No"

Submission status: Accepted

Solution code:
(w, h, x, y, r) = map(lambda s:int(s), 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 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())
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 x - r < 0:
 #left
 print("No")
elif x + r > W:
 #right
 print("No")
elif y - r < 0:
 print("No")
elif 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 r <= y <= H - r and r <= x <= W - r:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

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(x) for x in input().split()]
print('No' if x - r < 0 or y - r < 0 or x + r > W or y + r > H else 'Yes')

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 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:
ins = input().split()
w = int(ins[0])
h = int(ins[1])
x = int(ins[2])
y = int(ins[3])
r = int(ins[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:
z = input()
a = z.split()
if int(a[2]) >= int(a[4]) and int(a[3]) >= int(a[4]) and \
int(a[0]) >= int(a[2])+int(a[4]) and int(a[1]) >= int(a[3])+int(a[4]):
    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:
line = list(map(int,input().split()))
W, H, x, y, r = line[0],line[1],line[2],line[3],line[4]
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(n) for n in input().split()]

if x+r > w or y+r > h or x-r < 0 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 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(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:
# coding: utf-8
W,H,x,y,r=map(int,input().split())

if 0<=x-r and 0<=y-r and x+r<=W 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 and y >= r and x+r <= w and y+r <= h:
    print 'Yes'
else:
    print 'No'

Submission status: Accepted

Solution code:
if __name__ == "__main__":
	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 = map(int,input().split())
print('Yes' if x + r <= W and y - r >= 0 and x - r >= 0 and y + r <= H else 'No')

Submission status: Accepted

Solution code:
x = input()
y = x.split(" ")
y = [int(z) for z in y]
w = y[0]
h = y[1]
x = y[2]
r = y[4]
y = y[3]
if (x <= w-r and x >= r) and (y <= h-r and y >= r):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys

[Width, Height, x, y, r] = [int(x) for x in sys.stdin.readline().split()]

lower_x = r
lower_y = r
upper_x = Width - r
upper_y = Height -r 

if lower_x <= x <= upper_x and lower_y <= y <= upper_y:
   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 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 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 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 <= 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 = map(int, raw_input().split(' '))
if x+r < 0 or x+r > w or x-r < 0 or x-r > w or y+r < 0 or y+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, input().split())
print("{0}".format("Yes" if 0 <= x-r and 0 <= w-x-r and 0 <= y-r and 0 <= h-y-r else "No"))

Submission status: Accepted

Solution code:
'''
ITP-1_2-D
????????¢?????????????????????????????????????????????????????°????????????????????????????????????
?¬????????????????????????¢?????????????????????????????¨??????????????????????????§?¨? (W,H)(W,H) ????????????????????????
????????????????????????????????§?¨? (x,y)(x,y) ??¨?????? rr ??§?????????????????????
'''
# ?????°??????????????????
W, H, x, y, r = map(int,input().split())

# ?????§?¨?x - ??????
if x-r < 0:
    print( "No" )
# ?????§?¨?x + ?????? > ????????¢??§?¨?W
elif x + r > W:
    print( "No" )
# ?????§?¨?y - ?????? < 0
elif y-r < 0:
    print( "No" )
# ?????§?¨?y + ?????? > ????????¢??§?¨?H
elif y+r > H:
    print("No" )
# ??\???
else:
    print( "Yes" )

Submission status: Accepted

Solution code:
data = input().split()
W=int(data[0])
H=int(data[1])
x=int(data[2])
y=int(data[3])
r=int(data[4])
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:
W,H,x,y,r = map(int,input().split())

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
W, H, x, y, r = 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:
if __name__ == '__main__':
    key_in = input()
    data = key_in.split(' ')

    # ???????????? W, H, x, y, r ??????
    W = int(data[0])
    H = int(data[1])
    x = int(data[2])
    y = int(data[3])
    r = int(data[4])

    result = False
    if r <= x <= W-r and r <= y <= H-r:
        result = True

    if result is True:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
W,H,X,Y,R=map(int,input().split())
ok=True
if X<R or W-R<X:
	ok=False
if Y<R or H-R<Y:
	ok=False
if ok:
	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 (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, = [int(i) for i in input().split()]
if 0 <= x+r <= W and 0 <= y+r <= H and 0 <= x-r <= W and 0 <= y-r <= H:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
num=input().split()
W=int(num[0])
H=int(num[1])
x=int(num[2])
y=int(num[3])
r=int(num[4])
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 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,input().split())

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

Submission status: Accepted

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

t1_x = x + r
t1_y = y + r

t2_x = x - r
t2_y = y - r

if 0 <= t1_x <= W and 0 <= t1_y <= H and 0 <= t2_x <= W and 0 <= t2_y <= H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys

input_list = input().split(" ")
input_list = list(map(int, input_list))

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

if 0 <= x - r and x + r <= w:
    if 0 <= y - r and y + r <= h:
        print("Yes")
        sys.exit()

print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, 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:
__author__ = 'CIPHER'
_project_ = 'PythonLehr'

class BoundingBox:
    def __init__(self, width, height):
        self.width = width;
        self.height = height;

    def CalculateBox(self, x, y, r):
        if x>= r and x<=(self.width-r) and y>=r and y<=(self.height-r):
            print("Yes")
        else:
            print("No")
'''
width = int(input("Width of the Box: "))
height = int(input("Height of the Box: "))
x = int(input("location of x: "))
y = int(input("location of y: "))
r = int(input("radius of the circle; "))
'''

# alternative input
inputList = input()
inputList = inputList.split(' ')
inputList = [int(x) for x in inputList]
# print(inputList)
width = inputList[0]
height = inputList[1]
x = inputList[2]
y = inputList[3]
r = inputList[4]

Box = BoundingBox(width, height)
Box.CalculateBox(x, y, r)

Submission status: Accepted

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

if (x >= -100 and x <= 100) and (y >= -100 and y <= 100):
    if (w > 0 and w <= 100) and (h > 0 and h <= 100) and (r > 0 and r <= 100):
        
        if x > w:
            print("No")
        elif y > h:
            print("No")
        elif x < 0:
            print("No")
        elif y < 0:
            print("No")
        elif (x + r) > w:
            print("No")
        elif (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] = map(int, input().split())
print("Yes" if r <= x and x <= w - r and r <= y and y <= h - r else "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:
ciar = input().split()
W = int(ciar[0])
H = int(ciar[1])
x = int(ciar[2])
y = int(ciar[3])
r = int(ciar[4])
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:
x = input()
w, h, x, y, r = [int(x) for x in x.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 = list(map(int, input().split()))

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

Submission status: Accepted

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

array = input()
array = array.split()
for i in range(len(array)):
    array[i] = float(array[i])

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

if x-r >= 0 and y+r <= H and x+r <= W 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 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 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())
print("Yes"if (r<=x<=w-r)*(r<=y<=h-r) else"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')
else:
    print('No') if y - r < 0 or y + r > H 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,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 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 = input().split()
W = int(W)
H = int(H)
x = int(x)
y = int(y)
r = int(r)

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

else:
    if 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 x + r <= W and y + r <= H and x - r >= 0 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 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:
import fileinput

for line in fileinput.input():
    tokens = list(map(int, line.strip().split()))
    W, H, x, y, r = tokens[0], tokens[1], tokens[2], tokens[3], tokens[4]

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

    if flag:
        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] = list(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: Accepted

Solution code:
def circle_in_rectangle(radius, pos, height, width):
    """
    radius: int
    pos: tuple, (x, y)
    height: int, height of rectangle
    width: int, width of rectangle

    returns True if circle is in rectangle, otherwise False

    >>> circle_in_rectangle(1, (1, 1), 4, 5)
    True
    >>> circle_in_rectangle(1, (2, 4), 4, 5)
    False
    """
    (x, y) = pos
    if x < radius or x > width - radius:
        return False

    if y < radius or y > height - radius:
        return False

    return True

if __name__ == '__main__':
    #import doctest
    #doctest.testmod()

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

    if circle_in_rectangle(int(r), (int(x), int(y)), int(h), int(w)):
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
#!usr/bin/env python3

def string_five_numbers_spliter():
    """Split a given space-separated five numbers in a string into integers

    Return five integer values from a given space-separated five integers in a string.

    Returns:
        Five integer values; namely, w, h, x, y and r
    """
    w, h, x, y, r = [int(i) for i in input().split()]
    return w, h, x, y, r


def main():
    # Given that there are a rectangle and a circle.
    # Let w, h, x, y and r be such that:
    # w = width of the rectangle
    # h = height of thek rectangle
    # x = x coordinate for the centre of the circle
    # y = y coordinate for the centre of the circle
    # r = diameter of the circle
    w, h, x, y, r = string_five_numbers_spliter()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int ,raw_input().split())
#print ' '.join(map(str,[W,H,x,y,r]))

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

Submission status: Accepted

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

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

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(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=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:
w,h,x,y,r=map(int,raw_input().split())
if 0>x-r or w<x+r:
    print "No"
elif 0>y-r or h<y+r:
    print "No"
else:
    print "Yes"

Submission status: Accepted

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

Submission status: Accepted

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

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, 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:
inp = list(map(int,input().split()))
w = inp[0]
h = inp[1]
x = inp[2]
y = inp[3]
r = inp[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 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,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 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:
s = raw_input().rstrip().split(" ")
W = int(s[0])
H = int(s[1])
x = int(s[2])
y = int(s[3])
r = int(s[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 = [int(i) for i in input().split()]
ans = "Yes"
if x - r < 0 or W < x + r: ans = "No"
if y - r < 0 or H < y + r: ans = "No"
print(ans)

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    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:
W,H,x,y,r=[int(x) for x in 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 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, input().split())

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

Submission status: Accepted

Solution code:
num = input().split()
W, H, x, y, r = map(int, num)
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 = 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:
W, H, x, y, r = [int(temp) for temp in 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] = list(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 W-(x+r) >=0 and H-(y+r) >= 0:
    if x-r >= 0 and y-r >= 0:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
inps = input().split()
if len(inps) < 5:
    print("Illegal input.")
else:
    w = int(inps[0])
    h = int(inps[1])
    x = int(inps[2])
    y = int(inps[3])
    r = int(inps[4])
    if x - r < 0 or x + r > w:
        print("No")
    elif 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:
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:
W,H,x,y,r=map(int,raw_input().split())
if r<=x<=W-r:
	if r<=y<=H-r:
		print "Yes"
	else:
		print "No"
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,input().split())
if r<=x<=W-r and r<=y<=H-r:
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

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 = (int(i) for i in input().split())
if W <x+r or 0 > x-r or H < y+r or 0 > y-r:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
def is_in(p):
    return 0 <= p[0] <= W and 0 <= p[1] <= H

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

ans = 'Yes' if is_in((x + r, y + r)) and is_in((x - r, y - r)) else 'No'

print(ans)

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 = map(int, input().split(" "))

if (0+r)<=x and x<=(W-r) and (0+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 r <= x and x <= w - r and r <= y and y <= h - r :
    print("Yes")
else :
    print("No")

Submission status: Accepted

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

import sys
import os

#input_text_path = __file__.replace('.py', '.txt')
#fd = os.open(input_text_path, os.O_RDONLY)
#os.dup2(fd, sys.stdin.fileno())

w, h, x, y, r = list(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 x >= r and y >= r and (x + r) <= W and (y + r) <= H:
    print('Yes')
else: 
    print('No')

Submission status: Accepted

Solution code:
# coding: utf-8

num = input().rstrip().split(" ")

if (0 <= (int(num[2])-int(num[4]))) and ((int(num[2])+int(num[4])) <= int(num[0])) and (0 <= (int(num[3])-int(num[4]))) and ((int(num[3])+int(num[4])) <= int(num[1])):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
l = 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 and y >= r and x + r <= W and y + r <= H:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

if 0<x and x<W and 0<y and y<H:
    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 = 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 = list(map(int, input().split()))

flag = 'Yes'

if x-r < 0 or x+r > W:
  flag = 'No'

if y-r < 0 or y+r > H:
  flag = 'No'

print(flag)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def in_rectangle(w, h, x, y, r):
    # ?????????????????????
    left = x - r
    right = x + r
    floor = y - r
    ceil = y + r

    if 0 <= left and right <= w and 0 <= floor and ceil <= h:
        return True

    return False

w, h, x, y, r = map(int, input().split())
if in_rectangle(w, h, x, 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")