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:
a = list(input().split(" "))
a = [int(i) for i in a]
b = a[2]+a[4]
c = a[2]-a[4]
d = a[3]+a[4]
e = a[3]-a[4]
if 0<=b<=a[0] and 0<=c<=a[0]:
    if 0<=d<=a[1] and 0<=e<=a[1]:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if x + r > 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 = input().split()

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

else:
    print("No")

Submission status: Accepted

Solution code:
keys = ('W', 'H', 'x', 'y', 'r')
attr = {k:v for k, v in zip(keys, map(int, input().split()))}
border = {'from':(attr['r'], attr['r']),
         'to':(attr['W'] - attr['r'], attr['H'] - attr['r'])}
if border['from'][0] <= attr['x'] <= border['to'][0] and border['from'][1] <= attr['y'] <= border['to'][1]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def main():
    x = input()
    x1, x2, x3, x4, x5 = x.split(' ') 
    W = int(x1)
    H = int(x2)
    x = int(x3)
    y = int(x4)
    r = int(x5)
    
    if r <= x <= W-r and r <= y <= H-r:
        print("Yes")
    else:
        print("No")
    
if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w, h, x, y, r  = [int(s) for s in 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 > W :
	print("No")
elif y + r > H :
	print("No")
elif x-r <0 :
    print("No")
elif y-r <0:
    print("No")
else :
	print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W,H,x,y,r=list(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:
a = 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:
    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:
def main():
    W, H, x, y, r = map(int, input().split())
    
    f = 1
    if x + r > W:
        f = 0
    if x - r < 0:
        f = 0
    if y + r > H:
        f = 0
    if y - r < 0:
        f = 0

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = raw_input().split(' ')
for i in range(0, len(S)):
  S[i] = int(S[i])

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
WW, HH, xx, yy, rr = map(int, input().split())
if xx > 0 and yy > 0:
    if WW - rr >= xx and HH - rr >= yy:
        print("Yes")
    else:
        print("No")
elif xx > 0 and yy <=0:
    if WW - rr >= xx and HH - rr <= yy and yy - rr < yy:
        print("Yes")
    else:
        print("No")
elif xx <= 0 and yy > 0:
    if WW - rr <= xx and xx - rr < xx and HH - rr >= yy:
        print("Yes")
    else:
        print("No")
else:
    if WW - rr <= xx and xx - rr < xx and HH - rr <= yy and yy - rr < yy:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
def main():
    [width, height, cord_x, cord_y, radius] = list(map(int, input().split()))
    (circle_top,
     circle_left,
     circle_right,
     circle_bottom) = (cord_y + radius,
                       cord_x - radius,
                       cord_x + radius,
                       cord_y - radius)
    if circle_top <= height and circle_left >= 0 and circle_right <= width and circle_bottom >= 0:
        print('Yes')
    else:
        print('No')


main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_2_D&lang=jp

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    W, H, x, y, r = map(int, input().split())

    ans = 'No'
    if x - r >= 0 and y - r >= 0:
        if x + r <= W and y + r <= H:
            ans = 'Yes'

    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding utf-8 -*-
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())
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:
def main() :
    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")

if __name__ == '__main__' :
    main()

Submission status: Accepted

Solution code:
def main() :
    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")

if __name__ == '__main__' :
    main()

Submission status: Accepted

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

import fileinput
import math

def main():

    for line in fileinput.input():
        W, H, x, y, r = map(int, line.strip().split())

        #if((x <= 0 or x >= W) or (y <= 0 or y >= H)):
        #    print('No')

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def 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")

if __name__ == '__main__' :
    main()

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

Submission status: Accepted

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

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def cal(W, H, x, y, r):
    right =  x + r
    left = x - r
    top =  y + r
    bottom = y - r
    if (right > W or left < 0 or top > H or bottom < 0):
        return "No"
    else:
        return "Yes"


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

Submission status: Accepted

Solution code:
def main():
    n = input().split()

    w = int(n[0])
    h = int(n[1])
    x = int(n[2])
    y = int(n[3])
    r = int(n[4])
    L = x - r
    T = y - r
    R = x + r
    B = y + r

    x_ans = (L >= 0 and R <= w)
    y_ans = (T >= 0 and B <= h)

    if x_ans and y_ans:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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<0):
    print("No")
elif(y+r>H):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
l = input().split()
w = int(l[0])
h = int(l[1])
x = int(l[2])
y = int(l[3])
r = int(l[4])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8
array = map(int, raw_input().split())
W = array[0]
H = array[1]
x = array[2]
y = array[3]
r = array[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:
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:
def parseSpaceDivideIntArgs(arg):
    tmpArr = arg.split()
    ret = []
    for s in tmpArr:
        ret.append(int(s))
    return ret


def getArr2SpaceDivideStr(arg):
    ret = ""
    isFirst = True
    for s in arg:
        if not isFirst:
            ret += ' '
        else:
            isFirst = False
        ret += str(s)
    return ret


instr = input()
# instr = "5 4 2 4 1"

instrSpl = parseSpaceDivideIntArgs(instr)
W = instrSpl[0]
H = instrSpl[1]
x = instrSpl[2]
y = instrSpl[3]
r = instrSpl[4]

xcod1 = x - r >= 0
xcod2 = x + r <= W
ycod1 = y - r >= 0
ycod2 = y + r <= H

if xcod1 and xcod2 and ycod1 and ycod2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
if __name__ == '__main__':
	l = input().split()

	for i in range(len(l)):
		l[i] = int(l[i])
	W, H, x, y, r = l[0], l[1], l[2], l[3], l[4]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = raw_input()
a = a.split()
if(int(a[0]) < (int(a[2]) + int(a[4])) or int(a[2]) < 0):
    print 'No'
elif(int(a[1]) < (int(a[3])+int(a[4])) or int(a[3]) < 0):
    print 'No'
else:
    print 'Yes'

Submission status: Accepted

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

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

Submission status: Accepted

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

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())  ## -100<=x,y<=100 and 0<W,H,r<100

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
value = input().split()
W = int(value[0])
H = int(value[1])
coordinate = [[0 for _ in range(W + 1)] for _ in range(H + 1)]
x = int(value[2])
y = int(value[3])
r =int(value[4])
try:
    if x < 0 or y < 0:
        print("No")
    else:     
            tmp = coordinate[y][x + r]
            tmp = coordinate[y][x - r]
            tmp = coordinate[y + r][x]
            tmp = coordinate[y - r][x]
            print("Yes")
except Exception:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

print(answer)

Submission status: Accepted

Solution code:
x = raw_input()
x = x.split(" ")
w = int(x[0])
h = int(x[1])
x1 = int(x[2])
y = int(x[3])
r = int(x[4])

if x1 + r > w or x1 - 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 < 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=input().split()
W=int(W)
H=int(H)
x=int(x)
y=int(y)
r=int(r)
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())
print(['No','Yes'][(r<=x<=W-r)*(r<=y<=H-r)])

Submission status: Accepted

Solution code:
#Branch on Condition - Circle in a Rectangle

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:
def cinr(i):
    tmp = (i.split(" "))
    W = int(tmp[0])
    H = int(tmp[1])
    x = int(tmp[2])
    y = int(tmp[3])
    r = int(tmp[4])

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

if __name__ == "__main__":
    ret = cinr(input())

Submission status: Accepted

Solution code:
def judge(w, h, x, y, r):
    within_range = (0 <= x - r and x + r <= w) and (0 <= y - r and y + r <= h)
    return 'Yes' if within_range else 'No'

if __name__ == '__main__':
    w, h, x, y, r = map(int, input().split(' '))
    print(judge(w, h, x, y, r))

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

left_x = x - r
right_x = x + r
top_y = y + r
bottom_y = y - r

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys

w, h, x, y, r = map(int, sys.stdin.readline().split())

if x < r or (x+r) > w:
    print('No')
elif y < r or (y+r) > h:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
#coding:utf-8

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

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

Submission status: Accepted

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

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


elif x-r<0 or x+r>W:
  print("No")

elif y-r>=0 and y+r<=H:
    print("Yes")

elif x-r>=0 and x+r<=W:
    print("Yes")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print(a)

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(t) for t in input().split()]
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] = [int(x) for x in 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().rstrip().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:
#!/usr/bin/env python

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lis = [int(x) for x in input().split()]
if lis[2]-lis[4] < 0 or lis[2]+lis[4] > lis[0] :
    print("No")
elif lis[3]-lis[4] < 0 or lis[3]+lis[4] > lis[1]:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

a=x-r
ap=x+r

b=y-r
bp=y+r
if a<0 or ap>w or b<0 or bp>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:
w,h,x,y,r=map(int,input().split())
print("Yes" if x+r<=w and x-r>=0 and y+r<=h and y-r>=0 else "No")

Submission status: Accepted

Solution code:
a, b, c, d, f = input().split()
lw = int(a)
lh = int(b)
x = int(c)
y = int(d)
r = int(f)

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

Submission status: Accepted

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

right =  x + abs(r)
left = x - abs(r)
top = y + abs(r)
bottom = y - abs(r)

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

Submission status: Accepted

Solution code:
#coding: UTF-8

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def main(argv):
    w = argv[0]
    h = argv[1]
    x = argv[2]
    y = argv[3]
    r = argv[4]

    if 0 <= x - r  and x + r <= w and 0 <= y - r and y + r <= h:
        print('Yes')
    else:
        print('No')
        
if '__main__' == __name__:
    try:
        while True:
            main(list(map(int, input().strip().split(' '))))
    except EOFError:
        pass

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
### 長方形内に円が収まっているかを判定する。
### 治っていれば Yes、いなければNo を出力する。
### 図形は2次元平面上にある。

str_in = raw_input()
int_in = map(int, str_in.split())

rect_W = int_in[0]
rect_H  = int_in[1]
circle_x  = int_in[2]
circle_y = int_in[3]
circle_r = int_in[4]

circle_x_max = circle_x + circle_r
circle_x_min = circle_x - circle_r
circle_y_max = circle_y + circle_r
circle_y_min = circle_y - circle_r

if circle_x_max <= rect_W:
	if circle_x_min >= 0:
		if circle_y_max <= rect_H: 
			if circle_y_min >= 0:
				print ('Yes')
				exit()
print ('No')

Submission status: Accepted

Solution code:
Ns = list(map(int,input().split()))
if (Ns[2]- Ns[4] >= 0) and (Ns[2] + Ns[4] <= Ns[0]) and (Ns[3] - Ns[4] >= 0) and (Ns[3] + Ns[4] <= Ns[1]):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

#coding:utf-8

elements = input().split()
w = int(elements[0])
h = int(elements[1])
x = int(elements[2])
y = int(elements[3])
r = int(elements[4])

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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