Problem:


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

Circle in a Rectangle

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

Input

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

Output

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

Constraints

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

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

Sample Input 1

5 4 2 2 1

Sample Output 1

Yes

Sample Input 2

5 4 2 4 1

Sample Output 2

No



Sample input:
5 4 2 2 1


Sample output:
Yes

Submission status: Accepted

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

if (r+y)>H:
    print("No")
    
elif (r+x)>W:
    print("No")

elif (y-r)<0:
    print("No")
    
elif (x-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:
    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 or y<r or W-x<r or H-y<r or W<2*r or H<2*r:
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

if -100<=x<=100 and -100<=y<=100 and 0<W<=100 and 0<H<=100 and 0<r<=100:
   if x<r or y<r or W-x<r or H-y<r or W<2*r or H<2*r:
      print("No")
   else:
      print("Yes")
else:
   pass

Submission status: Accepted

Solution code:
W,H,x,y,r=map(int,input().split())
if r<=(x+r)<=W and r<=(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:
# coding: utf-8
# Your code here!

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
W , H , x , y , r = 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 W>x>0 and H>y>0:
    if r+x<=W and r+y<=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 and 0<=y and (y+r)<=H and (x+r)<=W:
    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())
import math
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=raw_input().split()

if(0>int(x)-int(r) or int(x)+int(r)>int(W) or 0>int(y)-int(r) or int(y)+int(r)>int(H)):
    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=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 = (int(x) for x 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 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 r<=x and x<=(W-r):
    if r<=y 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 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(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:
    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 = [int(arg) for arg in 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())

x1 = x-r
x2 = x+r
y1 = y-r
y2 = y+r

flag = 1

if x1 < 0:
    flag = 0

if x2 > W:
    flag = 0

if y1 < 0:
    flag = 0

if y2 > H:
    flag = 0

if flag < 1:
    print("No")

else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if 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:
a =  input().split()  #[W, H, x, y, r]
a = list(map(int, a))

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

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

Submission status: Accepted

Solution code:
inp = input().split()
WHxyr = []

for i in range(len(inp)):
    WHxyr.append(int(inp[i]))
               
W = WHxyr[0]
H = WHxyr[1]
x = WHxyr[2]
y = WHxyr[3]
r = WHxyr[4]

xtrue = r<=x and x<=(W-r) 
ytrue = r<=y and y<=(H-r)

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

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:
def r_in_c():
    W, H, x, y, r = map(int, input().split())
    vertical = (x - r) >= 0 and (x + r) <= W
    horizontal = (y - r) >= 0 and (y + r) <= H
    if vertical and horizontal:
        print('Yes')
    else:
        print('No')
    

if __name__ == "__main__":
    r_in_c()

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
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 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>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:
S = input().split()
W = int(S[0])
H = int(S[1])
x = int(S[2])
y = int(S[3])
r = int(S[4])
-100 <= x,y <= 100
0 < W,H,r <= 100
if (x - r < 0 or W < x + r or y - r < 0 or H < y + r) :
    print("No")
else :
    print("Yes")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
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 = (int(x) for x in input().split())

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, 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 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 > 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 H<y+r or W<x+r or y-r<0 or x-r<0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
W,H,x,y,r=map(int,input().split())
if x>=r and x+r<=W and y>=r and 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 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 W>=x+r and x-r>=0:
    if H>=y+r and y-r>=0:
        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 or W<x+r:
    print('No')
elif 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 (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 = map(int,input().split())
xx = [0] * 3
yy = [0] * 3
xx_b = 0
yy_b = 0

for i in range(3):
    xx[i] = x + (r * (-1 + i))
    yy[i] = y + (r * (-1 + i))
    if w >= xx[i] >= 0:
        xx_b += 1
    if h >= yy[i] >= 0:
        yy_b += 1

if xx_b == 3 and yy_b == 3:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W , H , x , y , r = map(int , input() . split())
if 0 > (x - r) or (x + r) > W or 0 > (y - r) or (y + r) > H :
     print('No')
if 0 <= (x - r) and (x + r) <= W and 0 <= (y - r) and (y + r) <= H :
     print('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:
from sys import stdin

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

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())
left = x - r
right = x + r
top = y + r
bottom = y - r
if left >= 0 and right <= W and top <= H and bottom >= 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 > 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:
def main():
    w, h, x, y, r = (int(e) for e in input().split())
    # 円が (0, 0) からはみ出ているか
    if x - r < 0 or y - r < 0:
        print("No")
    # 円が (w, h) からはみ出ているか
    elif x + r > w or y + r > h:
        print("No")
    else:
        print("Yes")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# coding: utf-8

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

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



       
# <?php

# // x - r > 0
# // x + r < W

# // y - r > 0
# // y + r < H

# fscanf(STDIN,"%d %d %d %d %d",$W,$H,$x,$y,$r);

# if ($x - $r >= 0 && $x + $r <= $W &&
#     $y - $r >= 0 && $y + $r <= $H) {
#         echo "Yes".PHP_EOL;
#     } else {
#         echo "No".PHP_EOL;
#     }

# ?>

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

Submission status: Accepted

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

u = y+r
d = y-r
l = x-r
r = x+r

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


def is_hamidasi(W, H, x, y, r):
    if W < x + r:
        return True
    if 0 > x - r:
        return True
    if H < y + r:
        return True
    if 0 > y - r:
        return True
    return False


if is_hamidasi(W, H, x, y, r):
    print("No")
else:
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
number = list(map(int,input().split()))
W = number[0]
H = number[1]
x = number[2]
y = number[3]
r = number[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 = map(int, 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:
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:
# coding: utf-8
# Your code here!
w,h,x,y,r=map(int, input().split())
if r<=x:
    if x<=w-r:
        if r<=y:
            if y<=h-r:
                print("Yes")
            else:
                print("No")
        else:
            print("No")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

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

elif x - r < 0:
  print("No")

elif y + r > H:
  print("No")

elif y - r < 0:
  print("No")

else:
  print("Yes")

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

Submission status: Accepted

Solution code:
def judge_include(w,h,x,y,r):
    if x - r < 0:
        return False
    if x + r > w:
        return False
    if y - r < 0:
        return False
    if y + r > h:
        return False
    return True


if __name__ == "__main__":
    w, h, x, y, r = map(int, input().split())
    if judge_include(w,h,x,y,r):
        print("Yes")
    else:
        print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

else:
    print("No")

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

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

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 or (x+r)>W or (y-r)<0 or (y+r)>H:
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = []
i =input().split()
w,h,x,y,r =list(map(int,i))
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:
val = input().split()
count = 0
a = int(val[0])
b = int(val[1])
c = int(val[2])
d = int(val[3])
r = int(val[4])

if a-c >= r:
    count += 1
if c >= r:
    count += 1
if d >= r:
    count += 1
if b-d >= r:
    count += 1
if count == 4:
    print("Yes")
if count < 4:
    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(i) for i 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:
W, H, x, y, r = list(map(int, input().split()))
# x axis
# x - r >= 0
# x + r <= W

# y axis
# y - r >= 0
# y + r <= H
xline = False
yline = False

if x - r >= 0 and x + r <= W:
    xline = True

if y - r >= 0 and y + r <= H:
    yline = True
    
if xline and yline:
    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:
z = input().split()

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

if r <= W-x <= W-r and r <= H-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:
    if r <= y 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( 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 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())

x_lower = x - r
x_upper = x + r

y_lower = y - r
y_upper = y + r

if x_lower >= 0 and y_lower >= 0 and x_upper <= W and y_upper <= H:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
W,H,x,y,z = map(int,input().split())
if( 0 <= (x-z) and 0 <= (y-z)) and ((x+z) <= W and (y+z) <= H):
  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:
l = list(map(int, input().split()))
w, h, x, y, r = l[0], l[1], l[2], l[3], l[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:
x = input()
W, H, x, y, r = map(int, x.split())

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

Submission status: Accepted

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

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

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

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

print(flag)

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

i = 0

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

Submission status: Accepted

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

left = x - r >= 0
right = x + r <= W
top = y + r <= H
bottom = y - r >= 0

if left and right and top and bottom:
    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:
    print("No")
else:
    if 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 <= 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 x + r <= w and y + r <= h and x > 0 and y > 0:
  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:
W,H,x,y,r=map(int,input().split())
print(["No","Yes"][r<=x<=W-r and r<=y<=H-r])

Submission status: Accepted

Solution code:
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())
result = "No"
if 0<= x -r and x+r <= W :
    if 0<= y-r and y+r <=H :
        result = "Yes"

print(result)

Submission status: Accepted

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

if x < r or (w - r) < x:
    # x check
    print('No')
elif y < r or (h - r) < y:
# y check
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
line = list(map(int,input().split()))
W =line[0]
H = line[1]
x = line[2]
y= line[3]
r=line[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:
W, H, x, y, r= map(int, input().split())
flag = True
if (x+r) > W:
    flag = False

elif (x-r) < 0:
    flag = False

elif (y+r) > H:
    flag = False

elif (y-r) < 0:
    flag = False


if flag:
    print("Yes")

else:
    print("No")