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

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

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
right = x - r
left = x + r
above = y + r
below = y - r

if x < 0 or y < 0:
    print('No')
else:
    if right >= 0 and left <= W and above <= H and below >= 0:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W,H,X,Y,R=map(int,input().split())
ok=True
if X<R or W-R<X:
    ok=False
if Y<R or H-R<Y:
    ok=False
if ok:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

xLongLeft = x-r
xLongRight = x + r

yLongTop = y + r
yLongBot = y - r

if((xLongLeft >= 0 and yLongBot >= 0) and (xLongRight <= w and yLongTop <= h)):
   print('Yes')
else:
   print('No')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin

W, H, x, y, r = (int(n) for n in stdin.readline().rstrip().split())

answer = "Yes" if r <= x <= W - r and r <= y <= H - r else "No"

print(answer)

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

x_right = x + r
x_left = x - r
y_up = y + r
y_down = y - r

if x_right <= W and x_left >= 0 and y_up <= H and y_down >= 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
num = list(map(int,input().split()))
 
circle_px = num[2] + num[4]
circle_mx = num[2] - num[4]

circle_py = num[3] + num[4]
circle_my = num[3] - num[4]

if(circle_px <= num[0] and circle_mx >= 0 and circle_py <= num[1] and circle_py >= 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 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 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:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

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 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 + r <= W and 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 and x + r <= W and 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:
W, H, x, y, r = map(int, input().split())
if x >= r and x + r <= W and 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 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,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:
def aizu004():
    xs = map(int,raw_input().split())
    W = xs[0]
    H = xs[1]
    x = xs[2]
    y = xs[3]
    r = xs[4]
    if (r <= x <= W-r) and (r <= y <= H-r):
        print "Yes"
    else:
        print "No"
aizu004()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
[W,H,x,y,r] = raw_input().split(' ')
W = int(W)
H = int(H)
x = int(x)
y = int(y)
r = int(r)
h = False
if x - r >= 0:
    if x + r <= W:
        if y - r >= 0:
            if y + r <= H:
                h = True
if h:
    print 'Yes'
else:
    print 'No'

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
[W,H,x,y,r] = input().split(' ')

W = int(W)
H = int(H)
x = int(x)
y = int(y)
r = int(r)
h = False

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

flag_x = (x + r <= W) and (x - r >= 0)
flag_y = (y + r <= H) and (y - r >= 0)

if flag_x and flag_y:
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w,h,x,y,r=[int(i) for i in raw_input().split()]

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

    ret = "Yes"
    if W < x + r or x - r < 0:
        ret = "No"
    elif H < y + r or y - r < 0:
        ret = "No"

    print ret

Submission status: Accepted

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

    ret = "Yes"
    if W < x + r or x - r < 0 or H < y + r or y - r < 0:
        ret = "No"

    print ret

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int,raw_input().split())
if w-r >= x and h-r >= y 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 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 ['No','Yes'][r<=x<=W-r and r<=y<=H-r]

Submission status: Accepted

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

W,H,x,y,r = map(int,raw_input().split())
print hantei(W,H,x,y,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())
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, raw_input().split())

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 30 16:58:45 2015

@author: hirose
"""

#Branch on Condition - Circle in a Rectangle

n = map(int, raw_input().split())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

check_x = (x + r <= w) and (x - r >= 0)
check_y = (y + r <= h) and (y - r >= 0)

if check_x and check_y:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

W = int(t[0])
H = int(t[1])
x = int(t[2])
y = int(t[3])
r = int(t[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:
import sys
(W, H, x, y, r) = [int(i) for i in sys.stdin.readline().split()]
if r <= x <= W - r and r <= y <= H - r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
import sys
 
WHxyr=sys.stdin.readline()
nums=WHxyr.split( ' ' )
for i in range( len( nums) ):
	nums[i] = int( nums[i] )
if (0 <= nums[2]-nums[4]) and (nums[2]+nums[4] <= nums[0]) and (0 <= nums[3]-nums[4]) and (nums[3]+nums[4] <= nums[1]):
	print( "Yes" )
else:
	print( "No" )

Submission status: Accepted

Solution code:
#coding:utf-8
#1_2_D 2015.3.6
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:
#coding:utf-8
#1_2_D 2015.3.6
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:
if __name__ == '__main__':
    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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

W, H, x, y, r = [ int( val ) for val in sys.stdin.readline().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 or y<r 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())

up = y + r
down = y - r
left = x - r
right = x + r

if up <= H and down >= 0 and left >= 0 and right <= W:
	print "Yes"

else:
	print "No"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
class itp1_2d:
    def judge(self,W,H,x,y,r):
        if(x-r<0 or
           x+r>W or
           y-r<0 or
           y+r>H):
            print("No")
        else :
            print("Yes")
if __name__=="__main__":
    num=map(int,raw_input().split(" "))
    run=itp1_2d()
    run.judge(num[0],num[1],num[2],num[3],num[4])

Submission status: Accepted

Solution code:
ia = [int(i) for i in input().split(" ")]
W=ia[0]
H=ia[1]
x=ia[2]
y=ia[3]
r=ia[4]
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 ( 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(r<=x and(W-r)>=x)and(r<=y and(H-r)>=y)else'No'

Submission status: Accepted

Solution code:
#coding:UTF-8

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

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, 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 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())
if W-x>=r and x>=r and H-y>=r and 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, raw_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 = [int(s) for s in 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 = raw_input().split(' ')
W,H,x,y,r = int(W),int(H),int(x),int(y),int(r)
 
if x-r <0 or y-r <0 or x+r >W or y+r>H:
  print "No"
else:
  print "Yes"

Submission status: Accepted

Solution code:
# coding=utf-8

inputs = raw_input().rstrip().split()
W, H, x, y, r = [int(x) for x in inputs]

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:
def check_inner( 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__":

    nums = map( int, raw_input().split())
    if check_inner( nums[0], nums[1], nums[2], nums[3], nums[4]):
        print "Yes"
    else:
        print "No"

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
nums = input().split()
W = int(nums[0])
H = int(nums[1])
X = int(nums[2])
Y = int(nums[3])
R = int(nums[4])
if (X - R) >= 0 and (X + R) <= W:
    if (Y - R) >= 0 and (Y+ R) <= H:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
import warnings

data = map(float, raw_input().split())

w = data[0]
h = data[1]
x = data[2]
y = data[3]
r = data[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:
#! /usr/bin/env python
# -*- coding: utf-8 -*-

import sys


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

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

if -100 <= x <= 100 and -100 <= y <= 100 and \
   0 < W <= 100 and 0 < H <= 100 and 0 < r <= 100:
    judge(W, H, x, y, r)
else:
    print "error!!"
    sys.exit(0)

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:

nums = input().split()
W = int(nums[0])
H = int(nums[1])
X = int(nums[2])
Y = int(nums[3])
R = int(nums[4])
if (X - R) >= 0 and (X + R) <= W:
    if (Y - R) >= 0 and (Y+ R) <= H:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
prm = sys.stdin.readline()
prm = prm.split()
W = int(prm[0])
H = int(prm[1])
x = int(prm[2])
y = int(prm[3])
r = int(prm[4])

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
print(
    (lambda out: 'No' if out else 'Yes')(
        (lambda w, h, x, y, r: x-r < 0 or w < x+r or \
                               y-r < 0 or h < y+r)(
            *map(int, input().split()))))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if x < r or (w - r) < x:
	result = False

if y < r or (h - r) < y:
	result = False

if result:
	print "Yes"
else:
	print "No"

Submission status: Accepted

Solution code:
numbers = input()
numbers = numbers.split(" ")

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

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

Submission status: Accepted

Solution code:
X= raw_input().split()
if float(X[2]) + float(X[4]) <= float(X[0])and float(X[2]) - float(X[4]) >= 0 and float(X[3]) + float(X[4]) <= float(X[1]) and float(X[3]) - float(X[4]) >= 0:
    print "Yes"
else:
    print "No"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, raw_input().split())
left = x - r
right = x + r
top = y + r
bottom = y - r

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

Submission status: Accepted

Solution code:
numbers = []
n = raw_input()
numbers = n.split(" ")
for i in range(5):
	numbers[i] = int(numbers[i])
W = numbers[0]
H = numbers[1]
x = numbers[2]
y = numbers[3]
r = numbers[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:
a = raw_input().split()
W = int(a[0])
H = int(a[1])
x = int(a[2])
y = int(a[3])
r = int(a[4]) 

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

var = raw_input().split()

var = map(int, var)

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

Submission status: Accepted

Solution code:
# encoding:utf-8

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

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:
#! /usr/bin/env python
# -*- coding: utf-8 -*-

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