There are a total of A + B cats and dogs.
Among them, A are known to be cats, but the remaining B are not known to be either cats or dogs.
Determine if it is possible that there are exactly X cats among these A + B animals.

-----Constraints-----
 - 1 \leq A \leq 100
 - 1 \leq B \leq 100
 - 1 \leq X \leq 200
 - All values in input are integers.

-----Input-----
Input is given from Standard Input in the following format:
A B X

-----Output-----
If it is possible that there are exactly X cats, print YES; if it is impossible, print NO.

-----Sample Input-----
3 5 4

-----Sample Output-----
YES

If there are one cat and four dogs among the B = 5 animals, there are X = 4 cats in total.
[{"code": "a, b, x = map(int, input().split())\nprint(\"YES\" if a <= x and x <= a+b else \"NO\")", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "a,b,x=map(int, input().split())\nprint(\"YES\" if a+b>=x>=a  else \"NO\")", "passed": true, "time": 2.07, "memory": 14324.0, "status": "done"}, {"code": "a,b,x = list(map(int,input().split()))\nif a<=x and a+b>=x:\n  print(\"YES\")\nelse:\n  print(\"NO\")\n", "passed": true, "time": 0.21, "memory": 14328.0, "status": "done"}, {"code": "a, b, x= list(map(int, input().split()))\n\nif a <= x <= a + b:\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.27, "memory": 14268.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nif a > x:\n    print('NO')\nelif x - a <= b:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 1.77, "memory": 14208.0, "status": "done"}, {"code": "A, B, X = list(map(int, input().split()))\nif A <= X <= A+B:\n    print('YES')\nelse:\n    print('NO')\n", "passed": true, "time": 0.14, "memory": 14048.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif a<=x<=a+b:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "a,b,c=map(int,input().split())\nif c<a:\n  print(\"NO\")\nelse:\n  if c>a+b:\n    print(\"NO\")\n  else:\n    print(\"YES\")", "passed": true, "time": 0.24, "memory": 14276.0, "status": "done"}, {"code": "A,B,X = map(int, input().split())\nprint('YES' if A <= X and A+B >= X else 'NO')", "passed": true, "time": 0.15, "memory": 14184.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\nprint('YES') if a <= x and x <= a+b else print('NO')", "passed": true, "time": 0.41, "memory": 14228.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif a<=x<=a+b:print('YES')\nelse:print('NO')", "passed": true, "time": 0.22, "memory": 14056.0, "status": "done"}, {"code": "A,B,X = map(int,input().split())\nprint('YES' if A <= X <= A+B else 'NO')", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif a<=x and a+b>=x:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14032.0, "status": "done"}, {"code": "A,B,X=map(int,input().split())\nif A+B>=X and A<=X:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.36, "memory": 14088.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nif a <= x <= a + b:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.15, "memory": 14296.0, "status": "done"}, {"code": "def mapt(fn, *args):\n    return tuple(map(fn, *args))\n\n\ndef Input():\n    return mapt(int, input().split(\" \"))\n\n\ndef main():\n    a, b, x = Input()\n    print(\"YES\"\n          if a <= x <= (a + b)\n          else \"NO\")\n\n\nmain()", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nprint(\"YES\" if a <= x and a + b >= x else \"NO\")", "passed": true, "time": 0.15, "memory": 14120.0, "status": "done"}, {"code": "a, b, x = list(map(int, input().split()))\nif a <= x <= a+b:\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.33, "memory": 14156.0, "status": "done"}, {"code": "a, b, c = map(int, input().split())\nif c >= a and c <= a + b:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "A,B,X = map(int,input().split())\ns = \"YES\"\nif A > X or A+B < X:\n  s = \"NO\"\nprint(s)", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nprint(\"NO\")if a+b<x or x<a else print(\"YES\")", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nif a+b < x or a > x:\n  print(\"NO\")\nelse:\n  print(\"YES\")", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\nif a > x:\n  print(\"NO\")\nelif a + b < x:\n  print(\"NO\")\nelse:\n  print(\"YES\")", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nans=\"YES\" if x<=a+b and x>=a else \"NO\"\nprint(ans)", "passed": true, "time": 0.24, "memory": 14204.0, "status": "done"}, {"code": "a, b, c = map(int, input().split())\nif a <= c and c <= a+b:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14056.0, "status": "done"}, {"code": "A,B,X = map(int,input().split())\nprint(\"YES\" if A <= X <= A+B else \"NO\")", "passed": true, "time": 0.15, "memory": 14076.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif a<=x<=a+b:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14212.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif a==x:print(\"YES\")\nelif a<x and a+b>=x:print(\"YES\")\nelse:print(\"NO\")", "passed": true, "time": 0.23, "memory": 14200.0, "status": "done"}, {"code": "a=input().split(' ')\nA=int(a[0])\nB=int(a[1])\nX=int(a[2])\nif A<=X and A+B>=X:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\nif x - a < 0:\n    print(\"NO\")\nelse:\n    print((\"NO\",\"YES\")[x-a<=b])", "passed": true, "time": 0.18, "memory": 14268.0, "status": "done"}, {"code": "a,b,c=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nif a+b>=c:\n  if a<=c:\n    print(\"YES\")\n  else:\n    print(\"NO\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.15, "memory": 14332.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nif a <= x <= a + b:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "def resolve():\n    a, b, x = map(int, input().split())\n    ans = \"\"\n    if a <= x and x <= a+b:\n        ans = \"YES\"\n    else:\n        ans = \"NO\"\n    print(ans)\nresolve()", "passed": true, "time": 0.23, "memory": 14144.0, "status": "done"}, {"code": "A, B, X = [int(i) for i in input().split()]\n\nif A <= X <= A + B:\n  print('YES')\nelse:\n  print('NO')\n", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "a,b,x = map(int, input().split())\nif a<=x<=a+b:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.17, "memory": 14236.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif a>x or x>a+b:\n    print(\"NO\")\nelse:\n    print(\"YES\")", "passed": true, "time": 0.16, "memory": 14040.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\na, b, x = list(map(int, input().split()))\n\nif a+b >= x and x >= a:\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.19, "memory": 14344.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\n\nif a>x:\n    print('NO')\nelse:\n    if x-a <= b:\n        print('YES')\n    else:\n        print('NO')", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "# coding: utf-8\nimport math\n\ncat, meta, x = map(int, input().split())\n\nif cat > x or cat + meta < x:\n    print(\"NO\")\nelse:\n    print(\"YES\")", "passed": true, "time": 0.16, "memory": 14216.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif a<=x<=a+b:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.15, "memory": 14068.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\n\nif a <= x:\n    print(\"YES\" if a + b >= x else \"NO\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.23, "memory": 14064.0, "status": "done"}, {"code": "a,b,c=map(int,input().split(\" \"))\nprint(\"YES\") if a<=c and a+b>=c else print(\"NO\")", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\nprint(\"YES\" if a<=x and a+b-x>0 else \"NO\")", "passed": true, "time": 0.39, "memory": 14180.0, "status": "done"}, {"code": "a, b, x = map(int,input().split())\nif a<=x and a+b>=x:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.24, "memory": 14052.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif x>a+b or x<a:\n  print(\"NO\")\nelse:\n  print(\"YES\")", "passed": true, "time": 0.18, "memory": 14056.0, "status": "done"}, {"code": "a,b,x=map(int, input().split())\nprint('NO' if x<a or x>a+b else 'YES')", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif a<=x and x<=a+b:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nif a<=x<=a+b:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "A,B,X=map(int,input().split())\nans=\"NO\"\nif A<=X<=A+B:\n    ans=\"YES\"\nprint(ans)", "passed": true, "time": 0.15, "memory": 14120.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif a<=x<=a+b:print(\"YES\")\nelse:print(\"NO\")", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "a,b,x=list(map(int,input().split()))\nif a>x:\n  print('NO')\nelif a+b>=x:\n  print('YES')\nelse:\n  print('NO')\n", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\n\nif a <= x and a + b >= x:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14048.0, "status": "done"}, {"code": "a,b,c = map(int,input().split())\nif a <= c and a+b >= c:\n        print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nif a > x:\n  print('NO')\nelif a+b >= x:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "a,b,x = list(map(int, input().split()))\n\n\nprint(('YES' if x <= a+b and a <= x else 'NO'))\n", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "a, b, x =map(int,input().split())\n\n\nif a <= x and (a+b) >= x:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "a,b,x = map(int, input().split())\nif a <= x <= a+b:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "a,b,x=list(map(int, input().split()))\n\nif (a+b)>=x>=a:\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.15, "memory": 14028.0, "status": "done"}, {"code": "a,b,c=list(map(int,input().split()))\nif a<=c:\n  if a+b>=c:\n    print('YES')\n  else:\n    print('NO')\nelse:\n  print('NO')\n", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "a, b, x = list(map(int, input().split()))\nif (x >= a) and (x <= a + b):\n    print('YES')\nelse:\n    print('NO')\n", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "A, B, X = map(int, input().split())\nif X >= A and X <= A+B:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.28, "memory": 14272.0, "status": "done"}, {"code": "a, b, x = list(map(int, input().split()))\n\n\nif 0 <= x - a <= b:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.37, "memory": 14068.0, "status": "done"}, {"code": "A, B, X = map(int, input().split())\n\nif X >= A and A + B >= X:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.26, "memory": 14056.0, "status": "done"}, {"code": "A, B, X = list(map(int, input().split()))\nif A + B < X or A > X:\n    print('NO')\nelse:\n    print('YES')\n", "passed": true, "time": 0.17, "memory": 14196.0, "status": "done"}, {"code": "A,B,X=map(int,input().split())\nif A+B>=X:\n    if X<A :\n        print('NO')\n    else :\n        print('YES')\nelse :\n    print('NO')", "passed": true, "time": 0.16, "memory": 14196.0, "status": "done"}, {"code": "a,b,n=map(int,input().split())\nif a<=n and n<=a+b:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.15, "memory": 14164.0, "status": "done"}, {"code": "A,B,X = map(int,input().split())\nprint(\"YES\" if A <= X and A + B >= X else \"NO\")", "passed": true, "time": 0.19, "memory": 14224.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nprint(\"YES\" if a <= x <= a + b else \"NO\")", "passed": true, "time": 0.22, "memory": 14052.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\nif a > x:\n    print('NO')\nelif x - a < b:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "lst = input().split()\na = int(lst[0])\nb = int(lst[1])\nx = int(lst[2])\n\nif (x <= a + b) and (a <= x):\n   print('YES')\nelse:\n   print('NO')", "passed": true, "time": 0.14, "memory": 14020.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif(a>x):\n    print(\"NO\")\nelif(a+b<x):\n    print(\"NO\")\nelse:\n    print(\"YES\")", "passed": true, "time": 0.15, "memory": 14096.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nprint(\"YES\" if a<=x<=a+b else \"NO\")", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "a,b,c = [int(x) for x in input().split()]\nres = \"YES\"\nif a > c:\n  res = \"NO\"\nif a + b < c:\n  res = \"NO\"\nprint(res)", "passed": true, "time": 0.15, "memory": 14176.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\nif a <= x and a+b >= x:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.15, "memory": 14164.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\nif x>=a and x<=a+b:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.15, "memory": 14284.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\nprint(\"YES\" if a+b >= x and a <= x else \"NO\")", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "def main():\n    a, b, x = list(map(int, input().split()))\n    print(('YES' if a <= x and a + b >= x else 'NO'))\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14212.0, "status": "done"}, {"code": "A, B, X = map(int, input().split())\n\nif 0 <= X - A <= B:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif a<=x<=a+b:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.23, "memory": 14072.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nif a == x or (a + b >= x and a < x):\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\n\nif a<=x and a+b>=x:\n    ans=\"YES\"\nelse:\n    ans=\"NO\"\nprint(ans)", "passed": true, "time": 0.22, "memory": 14068.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\nif a <= x and a+b >= x:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14032.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\n\nif a <= x <= a + b:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "A,B,X=map(int,input().split())\nif X < A or A+B < X:\n    print('NO')\nelse:\n    print('YES')", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "a, b, x = list(map(int, input().split()))\nif a + b >= x and a <= x:\n  print(\"YES\")\nelse:\n  print(\"NO\")\n", "passed": true, "time": 0.23, "memory": 14104.0, "status": "done"}, {"code": "A,B,X=list(map(int,input().split()))\nif A<=X and X<=A+B:\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "a,b,x=map(int,input().split())\nif a+b >= x and a <= x:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "A,B,X = list(map(int,input().split()))\nif A>X:\n    print(\"NO\")\nif A<=X:\n    if (A +B)<X:\n        print(\"NO\")\n    else:\n        print(\"YES\")\n", "passed": true, "time": 0.2, "memory": 14096.0, "status": "done"}, {"code": "a,b,x=list(map(int,input().split()))\nc=a+b\n\n\nif x<=c:\n    if a>x:\n        print('NO')\n    else:\n        print('YES')\nelse:\n    print('NO')\n", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "A, B, X = map(int, input().split())\nfor i in range(0, B + 1):\n    if A + i == X:\n        print(\"YES\")\n        return\nprint(\"NO\")", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\nif a <= x <= a+b:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "#ABC094A\na,b,x = map(int,input().split())\nprint(\"YES\" if a<=x <= a+b else \"NO\")", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "a,b,x = list(map(int, input().split()))\n\nif a + b < x :\n    print(\"NO\")\n\nelif a > x :\n    print(\"NO\")\n\nelse :\n    print(\"YES\")\n    \n", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nif a <= x <= a + b:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14264.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\nif a<=x and x<=a+b:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nprint('YES' if a <= x <= a + b else 'NO')", "passed": true, "time": 0.14, "memory": 14056.0, "status": "done"}, {"code": "cat_num, unknown_animals, question_num_cat = map(int, input().split())\n\nif cat_num <= question_num_cat <= cat_num + unknown_animals:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14268.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\n\nif a+b>=x and a<=x:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "a,b,x = map(int,input().split())\n\nif a+b >= x and a <= x:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "A,B,X = map(int, input().split())\nif X >= A and B >= (X-A):\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}]