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

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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"

Solution (Python):
[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")

Solution (Python):
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__':
    
    

    (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')

Solution (Python):


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():
    
    
    
    
    
    
    
    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()

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


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

Solution (Python):


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():
    
    
    
    
    
    
    
    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()

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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"

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):

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")

Solution (Python):

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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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"

Solution (Python):
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)

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
[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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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"

Solution (Python):
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"

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

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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)

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):


import sys
import os





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')

Solution (Python):
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')

Solution (Python):


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")

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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)

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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")

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

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

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):


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()

Solution (Python):


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()

Solution (Python):

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")

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

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

Solution (Python):
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")

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

Solution (Python):
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")

Solution (Python):


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)

Solution (Python):
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')

Solution (Python):
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" )

Solution (Python):
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')

Solution (Python):
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()))

Solution (Python):
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"

Solution (Python):


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")

Solution (Python):
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')

Solution (Python):
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"

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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)

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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')

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

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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")

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

Solution (Python):
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")

Solution (Python):

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")

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

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

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

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):



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

res = 'No'

if(r <= x <= W-r):
    
    if(r <= y <= H-r):
        res = 'Yes'
print(res)

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):


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')

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

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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()

Solution (Python):

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())

Solution (Python):
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")

Solution (Python):
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)

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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'

Solution (Python):
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")

Solution (Python):



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')

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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

Solution (Python):
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')