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:
W,H,x,y,r = [int(i) for i in input().split()]
if 0<x-r and x+r<W and 0<y-r and 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 or y-r<0 or x+r>W or y+r>H :
    print("NO")
else:
    print("NO")

Submission status: Wrong Answer

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

Solution code:
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",end="")
else:
    print("YES",end="")

Submission status: Wrong Answer

Solution code:
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("YES")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
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("YES",end="")
else:
    print("YES",end="")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
# TP1_2_D

# 5 4 2 2 1
# 22 - 33
# 3 < 5　かつ　3<4だからOK

# 5 4 2 4 1
# 24 - 35
# 5がアウトる

# x,yがマイナスの場合も考慮したい


N = input().split()
# print(N)

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

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

Submission status: Wrong Answer

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

flg = False
for x in [x - r, x + r]:
    for y in [y - r, y + r]:
        if not 0 <= x <= W or not 0 <= y <= H:
            flg = True

print(["Yes", "No"][flg])

Submission status: Wrong Answer

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

flg = False
for x in [x - r, x + r]:
    for y in [y - r, y + r]:
        if not 0 <= x <= W:
            flg = True
        if not 0 <= y <= H:
            flg = True

print(["Yes", "No"][flg])

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

Submission status: Wrong Answer

Solution code:
d=raw_input().split(" ")
l=list(map(int,d))
if(l[0]>=(l[2]+l[4])):
    if(l[1]>=(l[3]+l[4])):
        print "Yes"
    else:
        print "No"
else:
    print "No"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Solution code:
x = input().split(" ")
if int(x[2]) - int(x[4]) > 0 and int(x[3]) - int(x[4]) > 0 and int(x[2]) + int(x[4]) < int(x[0]) and int(x[3]) + int(x[4]) < int(x[1]) :
    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) and (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: Wrong Answer

Solution code:

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

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

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 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(" "))
x=abs(x)
y=abs(y)
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 < 0:
    if x + r > W:
        if y - r < 0:
            if y + r > H:
                print('Yes')
            else:
                print('No')
        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 x - r <= 0:
    if x + r >= W:
        if y - r <= 0:
            if y + r >= H:
                print('Yes')
            else:
                print('No')
        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 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:
h, w, 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:
h, w, 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:
a=input()
b=a.split()
d=list()
for c in b:
    d.append(int(c))
W=d[0]
H=d[1]
x=d[2]
y=d[3]
r=d[4]
if W-r>x and H-r>y:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a=input()
b=a.split()
d=list()
for c in b:
    d.append(int(c))
W=d[0]
H=d[1]
x=d[2]
y=d[3]
r=d[4]
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())
if x + r > w or y + r > h or x - r < 0 or h - 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 W<x-r and y-r<0 and h<y-r: 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 W<x+r and y-r<0 and h<y+r: 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 W<x-r and y+r<0 and h<y-r: 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 W<x+r and y-r<0 and H<y+r: print('No')

else: print('Yes')

Submission status: Wrong Answer

Solution code:
string = input()
numbers = string.split()
W = int(numbers[0])
H = int(numbers[1])
x = int(numbers[2])
y = int(numbers[3])
r = int(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: Wrong Answer

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

Submission status: Wrong Answer

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

if __name__=='__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
l = list(map(int, input('Please input int: ').split()))

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

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

Submission status: Wrong Answer

Solution code:
l = list(map(int, input('Please input int: ').split()))

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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[3]-nums[4])>=nums[1] and (nums[3]-nums[4])>=nums[1]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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[3]-nums[4])>=0 and (nums[3]-nums[4])>=0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

xLong = x+r
yLong = y+r

if(xLong == 0 and yLong == 0):
    print('Yes') 
elif(xLong <= w and yLong <= h):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

xLong = x+r
yLong = y+r

if((xLong >= 0 and xLong <= w) and (yLong >=0 and yLong <= h)):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

xLong = x+r
yLong = y+r

if((xLong > 0 and xLong < w) and (yLong >0 and yLong < h)):
    print('Yes')
elif(xLong == 0 or yLong == 0):
    print('No')
elif((xLong < 0 or xLong > w) or (yLong < 0 or yLong > h)) :
    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 and y-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 x -r < 0 and x+r > w:
    print("No")
elif y -r < 0 and 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 < 0 and x+r > w:
    print("No")
elif x-r  >= 0 or x+r < w:
    print("Yes")
elif y-r < 0 and y+r > h:
    print("No")
elif y-r >= 0 or y+r < h:
    print("Yes")

Submission status: Wrong Answer

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 & x_left >= 0 & y_up <= H & y_down >= 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Solution code:
w, h, x, y, r= map(int, raw_input().split())
if (w - r > x > r) and (h - r > y > r):
	print 'YES'
else:
	print 'NO'

Submission status: Wrong Answer

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

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"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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 x -r >= 0:
 print('Yes')
else:
 print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Spyder Editor

This is a temporary script file.
"""
n = map(int, raw_input().split())

a = n[0]
b = n[1]
c = n[2]

if(a < b and b < c):
    print "Yes"
else:
    print "No"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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 isXok(W,H,x,y,r):
    print True
else:
    print False

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
	num = input().split()
	w, h, x, y, r = map(int, num)
    
	if x > w or y > h:
		if (x+r) > w or (y+r) > h:
			print('Yes')
		else:
			print('No')
	else:
		if (x+r) > w or (y+r) > h:
			print('Yes')
		else:
			print('No')



if __name__=="__main__":
	main()

Submission status: Wrong Answer

Solution code:
def main():
	num = input().split()
	w, h, x, y, r = map(int, num)
    
	if x > w or y > h:
		print('Yes')
	else:
		if (x+r) > w or (y+r) > h:
			print('Yes')
		else:
			print('No')



if __name__=="__main__":
	main()

Submission status: Wrong Answer

Solution code:
def main():
	num = input().split()
	w, h, x, y, r = map(int, num)
    
	if x > w or y > h:
		if (x+r) > w or (y+r) > h:
			print('No')
	else:
		if (x+r) > w or (y+r) > h:
			print('No')
		else:
			print('Yes')



if __name__=="__main__":
	main()

Submission status: Wrong Answer

Solution code:
def main():
	num = input().split()
	w, h, x, y, r = map(int, num)
    
	if x > w and y > h:
		if (x+r) > w and (y+r) > h:
			print('No')
	else:
		if (x+r) > w and (y+r) > h:
			print('No')
		else:
			print('Yes')



if __name__=="__main__":
	main()

Submission status: Wrong Answer

Solution code:
def main():
	num = input().split()
	w, h, x, y, r = map(int, num)
    
	if x > w or y > h:
			print('No')
	else:
		if (x+r) > w or (y+r) > h:
			print('No')
		else:
			print('Yes')



if __name__=="__main__":
	main()

Submission status: Wrong Answer

Solution code:
def main():
	num = input().split()
	w, h, x, y, r = map(int, num)
    
	if abs(x) > abs(w) or abs(y) > abs(h):
			print('No')
	else:
		if (abs(x)+abs(r)) > w or (abs(y)+abs(r)) > abs(h):
			print('No')
		else:
			print('Yes')



if __name__=="__main__":
	main()

Submission status: Wrong Answer

Solution code:
def main():
	num = input().split()
	w, h, x, y, r = map(int, num)
    
	if abs(x) > abs(w) or abs(y) > abs(h):
			print('No')
	else:
		if abs(x+r) > abs(w) or abs(y+r) > abs(h):
			print('No')
		else:
			print('Yes')



if __name__=="__main__":
	main()

Submission status: Wrong Answer

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

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


if __name__=="__main__":
	main()

Submission status: Wrong Answer

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

	if abs(x+r*2) <= w and abs(y+r*2) <= h:
		print('Yes')
	else:
		print('No')


if __name__=="__main__":
	main()

Submission status: Wrong Answer

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 "N0"
else:
  print "Yes"

Submission status: Wrong Answer

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

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

if -100 <= x and y <= 100:
    print("Yes")

elif 0 < W and H and r <= 100:
    print("No")

Submission status: Wrong Answer

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

if 0 >= x - r and 0 >= 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) = [int(i) for i in input().split()]

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c,d,e = map(int,raw_input().split())
x = c + (e * 2)
y = d + (e * 2)
if a < x or b < y:
    print "No"
else:
    print "Yes"

Submission status: Wrong Answer

Solution code:
a,b,c,d,e = map(int,raw_input().split())
x = c + (e * 2)
y = d + (e * 2)
if a <= x or b <= y:
    print "No"
else:
    print "Yes"

Submission status: Wrong Answer

Solution code:
a,b,c,d,e = map(int,raw_input().split())
x = c + (e * 2)
y = d + (e * 2)
if (a < x or b < y) and (a == x or b == y):
    print "No"
else:
    print "Yes"

Submission status: Wrong Answer

Solution code:
import sys
"""
W = input()
H = input()
x = input()
y = input()
r = input()
"""

W=5
H=4
x=2
y=2
r=1
if r < y and y < H-r:
    if r < x and x < W-r:
        print 'yes'
else:
    print 'no'

Submission status: Wrong Answer

Solution code:
import sys

W=5
H=4
x=2
y=2
r=1
if r < y and y < H-r:
    if r < x and x < W-r:
        print 'yes'
else:
    print 'no'