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: Wrong Answer

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

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

print("Yes" if pred(*a) else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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((x-r)>=0)) ) else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (a[2]+a[4])<a[0] and (a[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: Wrong Answer

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

if (a[2]+a[4])<=a[0] and (a[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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding utf-8 -*-
W, H, x, y, r = map(int,input().split())

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

W,H,x,y,r=map(int,input().split())
a=abs(x-W)
b=abs(y-H)
if a<b:
    if a<r:
        print('No')
    else:
        print('Yes')
else:
    if b<r:
        print('No')
    else:
        print('Yes')

Submission status: Wrong Answer

Solution code:
# AOJ Circle in a Rctangle

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: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
def check(W, H, x, y, r):
    if W - x < r or  H - y < r:
        return "No"
    else:
        return "Yes"

L = list(map(int, input().split()))
check(L[0], L[1], L[2], L[3], L[4])

Submission status: Wrong Answer

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

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

    if (L >= 0 or w <= R) and (T <= 0 or h >= B):
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c,d,e = map(int,(input().split()))
print (a,b,c,d,e)

if c >= e and d >= e and a >= c + e and b >= d + e:
    print ("Yes")
else:
    print ("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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]

xcod = W >= 2 * r + x
ycod = H >= 2 * r + y

if xcod & ycod:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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]

xcod = W >= 2 * r + x
ycod = H >= 2 * r + y

if xcod and ycod:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
W,H,x,y,r = map(int, input().split())  ## -100<=x,y<=100 and 0<W,H,r<100

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

Submission status: Wrong Answer

Solution code:
W,H,x,y,r = map(int, input().split())  ## -100<=x,y<=100 and 0<W,H,r<100

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

Submission status: Wrong Answer

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 or r < y:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
value = input().split()
W = int(value[0])
H = int(value[1])
coordinate = [[0 for _ in range(W)] for _ in range(H)]
x = int(value[2])
y = int(value[3])
r =int(value[4])
try:
    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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
value = input().split()
W = int(value[0])
H = int(value[1])
coordinate = [[0 for _ in range(W)] for _ in range(H)]
x = int(value[2])
y = int(value[3])
r =int(value[4])
try:
    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: Wrong Answer

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:
    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: Wrong Answer

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])
if x < 0 and y < 0:
    print("No")
try:
    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: Wrong Answer

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 and 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: Wrong Answer

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 and 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: Wrong Answer

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

Submission status: Wrong Answer

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

print(answer)

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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("Yes")
else :
    print("No")

Submission status: Wrong Answer

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("Yes")
else :
    print("No")

Submission status: Wrong Answer

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: Wrong Answer

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])
    print(W, H, x, y, r)

    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: Wrong Answer

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: Wrong Answer

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\n")
    else:
        print("NO\n")
    return 0

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

Submission status: Wrong Answer

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 >= W and right_x <= W and top_y <= H and bottom_y >= H:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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('1')
else:
    print('0')

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
import math
W,H,x,y,r=map(int,input().split())
s=W*H
e=r*2*math.pi

if s<e:
  print("No")

elif s>e:
  print("Yes")

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

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

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

if 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: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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 and ap<w and b>0 and bp<h:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
#coding: UTF-8

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

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

Submission status: Wrong Answer

Solution code:
#coding: UTF-8

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

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

Submission status: Wrong Answer

Solution code:
#coding: UTF-8

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: Wrong Answer

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: Wrong Answer

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: Wrong Answer

Solution code:
#coding: UTF-8

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

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

Submission status: Wrong Answer

Solution code:
#coding: UTF-8

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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 ('Yest')
				exit()
print ('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

Solution code:
s = input()
ss = s.split(" ")
arg = [int(sss) for sss in ss]
e = arg[0] >= arg[1] + arg[4] and arg[1] >= arg[3] + arg[4]
print("Yes" if e else "No")