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  = list(map(int, input().split()))
if x<0 or y<0:
    print("No")
elif W<x+r  or H<y+r or x<r or 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 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(x) for x in 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:
def in_rectangle(w, h, x, y, r):
    # ?????????????????????
    left = x - r
    right = x + r
    floor = y - r
    ceil = y + r

    # ?????????????????????????????¨???????????¢?????????????????°ok
    if 0 <= left and right <= w and 0 <= floor and ceil <= h:
        return True

    return False

# AOJ??¨
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 = [int(i) for i 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:
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 not (x+r>W or r>x or r>y or y+r>H):
 print("Yes")
else :
 print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
import math

def func():
    try:
        line=input().rstrip()
        numbers=line.split(" ")
        
        width=float(numbers[0])
        height=float(numbers[1])
        x=float(numbers[2])
        y=float(numbers[3])
        r=abs(float(numbers[4]))
        
    except:
        print("input error")
        return -1
    
    wsign=math.copysign(1,width)
    hsign=math.copysign(1,height)
    
    result=(wsign*x+r <= wsign*width)
    result=result and (wsign*x-r >= 0)
    result=result and (hsign*y+r <= hsign*height)
    result=result and (hsign*y-r >= 0)
    
    if result:
        print("Yes")
    else:
        print("No")
        
func()

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
import math

def func():
    try:
        line=input().rstrip()
        numbers=line.split(" ")
        
        width=float(numbers[0])
        height=float(numbers[1])
        x=float(numbers[2])
        y=float(numbers[3])
        r=abs(float(numbers[4]))
        
    except:
        print("input error")
        return -1
    
    wsign=math.copysign(1,width)
    hsign=math.copysign(1,height)
    
    
    result="No"
    if(wsign*x+r <= wsign*width):
        if(wsign*x-r >= 0):
            if(hsign*y+r <= hsign*height):
                if(hsign*y-r >= 0):
                    result="Yes"
  
    print(result)
    
func()

Submission status: Accepted

Solution code:
#coding:UTF-8
s = input().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= map(int,input().split())
if W-r >= x >= r and H-r >= y >= 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 w-r >= x and x >= r and h-r >= y and y >= r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:


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


if __name__ == '__main__':
    N = input().split(" ")
    l = []
    for i in N:
        l.append(int(i))
    CinR(l)

Submission status: Accepted

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

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

if right>W or left<0 or top>H or bottom<0:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
W,H,x,y,r = [int(i) for i 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 = map(int,raw_input().split())

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

Submission status: Accepted

Solution code:
def main(arg):
    arg = str(arg)
    w, h, x, y, r = [int(x)for x in arg.split(" ")]
    if (y+r) <= h and (x+r) <= w and r <= x and r <= y:
        return "Yes"
    return "No"

if __name__ == '__main__':
    print(main(input()))

Submission status: Accepted

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

if x[2]-x[4]<0 or x[2]+x[4]>x[0] or x[3]-x[4]<0 or x[3]+x[4]>x[1]:
	print"No"
else:print"Yes"

Submission status: Accepted

Solution code:
#coding:utf-8

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

f = 0
if x - r<0:
    f = 1
elif x + r>W:
    f = 1
elif y - r<0:
    f = 1
elif y + r>H:
    f=1
else:
    pass

if f ==1:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
def in_line(n, r, l):
    return 0 <= n-r <= n+r <= l

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

if in_line(x, r, W) and in_line(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 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) & (x - r >= 0) & (y - r >= 0) & (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 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())

r<=x
r<=y
x+r<=W
y+r<=H

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

Submission status: Accepted

Solution code:
import math
width, height, xPosition, yPosition, radius = list(map(int, input().split(" ")))
horizontalMargin = radius * math.cos(math.radians(0))
verticalMargin = radius * math.sin(math.radians(90))
ANSWER_NO = "No"
ANSWER_YES = "Yes"
condition = False
if xPosition >= horizontalMargin and xPosition <= (width - horizontalMargin):
    if yPosition >= verticalMargin and yPosition <= (height - verticalMargin):
        condition = True

print(ANSWER_YES) if condition else print(ANSWER_NO)

Submission status: Accepted

Solution code:
import sys

w,h,x,y,r = map(int, sys.stdin.readline().rstrip().split(' '))
print("Yes" if (r <= x <= (w-r)) and (r <= y <= (h-r)) else "No")

Submission status: Accepted

Solution code:
s = input().split(" ")
nums = list(map(int, s))
W = nums[0]
H = nums[1]
x = nums[2]
y = nums[3]
r = nums[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, 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 <= 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 <= H and y-r >= 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

if rec_vertex[0] <= circle_origin[0] or rec_vertex[1] <= circle_origin[1]:
    print("No")
elif circle_origin[0] <= 0 or circle_origin[1] <= 0:
    print("No")
elif rec_vertex[0] - (circle_origin[0] + circle_rad) >= 0 and rec_vertex[1] - (circle_origin[1] + circle_rad) >= 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W, H, x, y, r = list(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,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 = 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 = [int(i) for i 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 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 - 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 -*-
l = input().strip().split()
W = int(l[0])
H = int(l[1])
x = int(l[2])
y = int(l[3])
r = int(l[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:
i = 0
W = H = x = y = r = ''


line = input()

while line[i] != ' ':
    W = W + line[i]
    i += 1

i += 1
while line[i] != ' ':
    H = H + line[i]
    i += 1

i += 1
while line[i] != ' ':
    x = x + line[i]
    i += 1

i += 1
while line[i] != ' ':
    y = y + line[i]
    i += 1
    
i += 1
while i < len(line):
    r = r + line[i]
    i += 1
    
W = int(W)
H = int(H)
x = int(x)
y = int(y)
r = int(r)


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

Submission status: Accepted

Solution code:
input_data = [int(i) for i in input().split()]
W = input_data[0]
H = input_data[1]
x = input_data[2]
y= input_data[3]
r = input_data[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:
a = list(map(int, input().split()))
W = a[0]
H = a[1]
x = a[2]
y = a[3]
r = a[4]
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:
s=input().rstrip().split(' ')
W=int(s[0])
H=int(s[1])
x=int(s[2])
y=int(s[3])
r=int(s[4])
cx=W-r
cy=H-r
if cx>=x & x>=r:
    if cy>=y & y>=r:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# input = list(map(int, input().split()))
# print(input)
# W, H, x, y, r = input[0], input[1], input[2], input[3], input[4]
W, H, x, y, r = [int(i) for i in input().split()]

res = 'No'
# x??§?¨??????????
if(r <= x <= W-r):
    # y??§?¨??????????
    if(r <= y <= H-r):
        res = 'Yes'
print(res)

Submission status: Accepted

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

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

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:
a=input().split()
b=list(map(int,a))
W=b[0]
H=b[1]
x=b[2]
y=b[3]
r=b[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(i) for i 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>W or y+r>H:
    print("No")
elif  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 > W or y+r > H:
    print("No")
elif  x-r < 0 or y-r < 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
def discriminator(x, W, r):
    if (x >= r) & (x <= (W-r)):
        return True
    else:
        return False
    
if (discriminator(x, W, r)) & (discriminator(y, H, r)):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#! python3

W, H, x, y, r = [int(x) for x in input().strip().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:
x,y,w,h,r=[int(i) for i in input().split()]
if r<=w<=x-r and r<=h<=y-r :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
input_line = input()
l = input_line.split()
m = list(map(int,l))
if m[4]<=m[2]<=(m[0]-m[4]) and m[4]<=m[3]<=(m[1]-m[4]):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:

def main(input):
    Arr = []
    Arr = input.split()
    for i in range(5):
        Arr[i] = int(Arr[i])
    L = []
    L.append([0,0])
    L.append([Arr[0],Arr[1]])
    for i in range(0, 2, 1):
        for j in range(0,2,1):
            if((-1)**(i-1)*(L[i][j]-Arr[2+j]))<Arr[4]:
                print('No')
                return
    print("Yes")

main(input())

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

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:
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:
w,h,x,y,r = [eval(x) for x in input().split()]
print("No" if x + r > w or x - r < 0 or y + r > h or y - r < 0 else "Yes")

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:
input_line = map(int, raw_input().split() )

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

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=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:
### 17.07.2017
### ???W ??????H???????????¢?????????r ??§?¨?(x,y)???????????????????????????????????\??????

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 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, 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:
a = map(int, raw_input().split())

W=a[0]
H=a[1]
x=a[2]
y=a[3]
r=a[4]
no="No"
yes="Yes"

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

def YesOrNo(W, H , x, y, r):
	Xr = x + r
	Xl = x - r
	Yu = y + r
	Yd = y - r
	if (W >= Xr and H >= Yu and 0 <= Xl and 0 <= Yd):
		return "Yes"
	else:
		return "No"

print(YesOrNo(W, H, x, y, r))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
line = input().split(" ")
w = int(line[0])
h = int(line[1])
x = int(line[2])
y = int(line[3])
r = int(line[4])
if x - r < 0:
    print("No")
elif w < x + r:
    print("No")
elif y - r < 0:
    print("No")
elif h < y + r:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())
xr = x + r
xl = x + r
yu = y + r
yd = y + r


if x < 0 or y < 0:
    print('No')
elif xr in range(0,w+1) and xl in range(0,w+1):
    if yu in range(0,h+1) and yd in range(0,h+1):
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Accepted

Solution code:
tmp = input()
tmp = tmp.split(" ")
W,H,x,y,r = list(map(int,tmp))
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 = list(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:
c = input()
c = c.split(" ")
c = list(map(int,c))
w = c[0]
h = c[1]
x = c[2]
y = c[3]
r = c[4]
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 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())
print 'Yes' if 0 <= x + r <= W and 0 <= y + r <= H and 0 < x else '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, raw_input().split())
print 'Yes' if 0 <= x - r and 0 <= y -r and x + r <= W 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 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 = map(int, raw_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:
# Aizu Problem ITP_1_2_D: Circle in an Rectangle
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input3.txt", "rt")

def circle_in_rectangle(W, H, x, y, r):
    return W >= 2 * r and x >= r and x <= W - r and \
           H >= 2 * r and y >= r and y <= H - r
    
W, H, x, y, r = [int(_) for _ in input().split()]
print("Yes" if circle_in_rectangle(W, H, x, y, r) else "No")

Submission status: Accepted

Solution code:
[w, h, x, y, r] = [int(number) for number in input().split()];
if (r <= x) & (x + r <= w) & (r <= y) & (r + y <= 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 x + r > w or y - r < 0 or y + r > h:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
x=input().split()
x=list(map(int, x))
W,H,x,y,r = x[0],x[1], x[2], x[3],x[4]
if x-r < 0:
    print("No")
elif x+r > W :
    print("No")
elif y+r > H:
    print("No")
elif y-r < 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
x = input()
split_x = x.split()
split_x_int = [int(i) for i in split_x]

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

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:
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:
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 =[int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
def if_inside(boundary, pos, stretch, boundedside):
    if boundedside is "greater":
        return False if pos + stretch > boundary else True
    else:
        return False if pos - stretch < boundary else True


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

leftin = if_inside(0, x, r, "lesser")
buttomin = if_inside(0, y, r, "lesser")
rightin = if_inside(w, x, r, "greater")
topin = if_inside(h, y, r, "greater")

print("Yes") if leftin and buttomin and rightin and topin else print("No")

Submission status: Accepted

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

w = int(i[0])
h = int(i[1])
x = int(i[2])
y = int(i[3])
r = int(i[4])

left_pos = x - r
right_pos = x + r
top_pos = y + r
bottom_pos = y - r

if left_pos < 0 or w < right_pos or bottom_pos < 0 or h < top_pos:
    print("No")
else:
    print("Yes")

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

Submission status: Accepted

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

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

answer = True

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

if answer == True:
    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 w-r<x or h-r<y):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

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:
lin = input()
l = lin.split(" ")
w = int(l[0])
h = int(l[1])
x = int(l[2])
y = int(l[3])
r = int(l[4])

def hantei(limit, me):
    if (me - r) < 0:
        return False
    elif (me + r) > limit:
        return False
    else:
        return True        
    
if hantei(w, x) == True and hantei(h, y) == True:
    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:
def pred(w, h, x, y, r):
    if x - r < 0 or y - r < 0 or x + r > w or y + r > h:
        return False
    else:
        return True

a = list(map(int, input().split()))

print("Yes" if pred(*a) else "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:
All=input().split()
W=int(All[0])
H=int(All[1])
x=int(All[2])
y=int(All[3])
r=int(All[4])
if x+r<=W and x-r>=0 and y+r<=H and y-r>=0:
    print('Yes')
else:
    print('No')