Raccoon is fighting with a monster.
The health of the monster is H.
Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i.
There is no other way to decrease the monster's health.
Raccoon wins when the monster's health becomes 0 or below.
If Raccoon can win without using the same move twice or more, print Yes; otherwise, print No.

-----Constraints-----
 - 1 \leq H \leq 10^9
 - 1 \leq N \leq 10^5
 - 1 \leq A_i \leq 10^4
 - All values in input are integers.

-----Input-----
Input is given from Standard Input in the following format:
H N
A_1 A_2 ... A_N

-----Output-----
If Raccoon can win without using the same move twice or more, print Yes; otherwise, print No.

-----Sample Input-----
10 3
4 5 6

-----Sample Output-----
Yes

The monster's health will become 0 or below after, for example, using the second and third moves.
[{"code": "h, n = list(map(int, input().split()))\na = list(map(int, input().split()))\n\nif h <= sum(a):\n    print('Yes')\nelse:\n    print('No')\n", "passed": true, "time": 0.15, "memory": 14092.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nlst = list(map(int, input().split()))\n\nfor i in range (0, N):\n    H -= lst[i]\n\nif H <= 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.19, "memory": 14308.0, "status": "done"}, {"code": "H, N = list(map(int, input().split()))\n\nA = list(map(int, input().split()))\n\nprint(('Yes' if H - sum(A) <= 0 else \"No\"))\n", "passed": true, "time": 0.25, "memory": 14324.0, "status": "done"}, {"code": "h,n=map(int,input().split())\na=list(map(int,input().split()))\nfor i in range(n):\n    h=h-a[i]\nif h<=0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.15, "memory": 14068.0, "status": "done"}, {"code": "H,N = map(int,input().split())\nlsA = list(map(int,input().split()))\nprint('Yes' if H <= sum(lsA) else 'No')", "passed": true, "time": 0.22, "memory": 14080.0, "status": "done"}, {"code": "H,N =list(map(int,input().split()))\nA = list(map(int,input().split()))\na_sum =sum(A)\n\nif sum(A) - H >= 0:\n    print('Yes')\nelse:\n    print('No')\n", "passed": true, "time": 0.15, "memory": 14104.0, "status": "done"}, {"code": "h,n = map(int,input().split())\nxlist = list(map(int,input().split()))\nif sum(xlist)>=h:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.23, "memory": 14068.0, "status": "done"}, {"code": "h,n = map(int, input().split())\nA = list(map(int, input().split()))\n\ntot = sum(A)\nhp = h - tot\nif(hp <= 0) :\n    print(\"Yes\")\nelse :\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "h, n = map(int, input().split())\nA = list(map(int, input().split()))\nflag = False\n\nfor a in A:\n  h -= a\n  if h<=0:\n    flag = True\n    break\n\nprint(\"Yes\" if flag else \"No\")", "passed": true, "time": 0.25, "memory": 14292.0, "status": "done"}, {"code": "def main():\n\th, n = list(map(int, input().split()))\n\tl = [int(v) for v in input().split()]\n\ttotal = sum(l)\n\tif total>= h:\n\t\treturn \"Yes\"\n\treturn \"No\"\t\n\ndef __starting_point():\n    print((main()))\n\n__starting_point()", "passed": true, "time": 0.27, "memory": 14256.0, "status": "done"}, {"code": "H,N = map(int,input().split())\nA = map(int,input().split())\nif H <= sum(A):\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.26, "memory": 14240.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA_list = []\nfor i in range(1, N+1):\n    A_list.append(\"A_\" + str(i))\n\nA_list = map(int, input().split())\nA_total = sum(A_list)\n\nif A_total >= H:\n    print(\"Yes\")\nelse:\n    print(\"No\") ", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "H,N=map(int,input().split())\nList=list(map(int,input().split()))\n\nSum=sum(List)\n\nif H <= Sum:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14360.0, "status": "done"}, {"code": "#\u30a2\u30e9\u30a4\u30b0\u30de\u306f\u30e2\u30f3\u30b9\u30bf\u30fc\u3068\u6226\u3063\u3066\u3044\u307e\u3059\u3002\n# \u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u306f H \u3067\u3059\u3002\n#\u30a2\u30e9\u30a4\u30b0\u30de\u306f N \u7a2e\u985e\u306e\u5fc5\u6bba\u6280\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u3001\n#i \u756a\u76ee\u306e\u5fc5\u6bba\u6280\u3092\u4f7f\u3046\u3068\u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u3092 Ai \u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n#\u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u3092 0 \u4ee5\u4e0b\u306b\u3059\u308c\u3070\u30a2\u30e9\u30a4\u30b0\u30de\u306e\u52dd\u3061\u3067\u3059\u3002\n\nH,N=map(int,input().split())\nA = list(map(int,input().split()))\n\nif H - sum(A) <= 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "  \nH, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nif H - sum(A) <= 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.15, "memory": 14176.0, "status": "done"}, {"code": "N,M = map(int,input().split())\nattack = list(map(int,input().split()))\nif sum(attack) >= N:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "h,n=map(int,input().split())\nl=list(map(int,input().split()))\na=0\nfor i in range(n):\n    a+=l[i]\nif a>=h:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.29, "memory": 14236.0, "status": "done"}, {"code": "h,n=map(int,input().split());print('YNeos'[sum(map(int,input().split()))<h::2])", "passed": true, "time": 0.15, "memory": 14076.0, "status": "done"}, {"code": "h = input()\nh = h.split()\nn = int(h[1])\nh = int(h[0])\na = input()\na = a.split()\nc = int(a[0])\nfor b in range(n-1):\n    c = c + int(a[b+1])\nif h>c:\n    print(\"No\")\nelse:\n    print(\"Yes\")", "passed": true, "time": 0.36, "memory": 14232.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nAA = sum(A)\n\nif AA >= H:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14360.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = list(map(int, input().split()))\nA1 = sum(A)\n\nif H - A1 <= 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "H,N = map(int,input().split())\ni = map(int,input().split())\n\nif sum(i) >= H :\n    print(\"Yes\")\nelse :\n    print(\"No\")", "passed": true, "time": 0.17, "memory": 14288.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = list(map(int, input().split()))\nif sum(A) >= H:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.22, "memory": 14048.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = map(int, input().split())\na_sum = sum(A)\n\nif H - a_sum <= 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = list(map(int, input().split()))\nsum = 0\nfor i in range(N):\n  sum += A[i]\nif sum >= H:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "h,n = map(int,input().split())\nli = list(map(int,input().split()))\nif h <= sum(li):\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "h,n=map(int, input().split())\n\nA=list(map(int,input().split()))\n\n\nprint('YNeos'[sum(A)<h::2])", "passed": true, "time": 0.15, "memory": 14240.0, "status": "done"}, {"code": "h,n = map(int,input().split())\na = list(map(int,input().split()))\nprint(\"Yes\" if sum(a) >= h else \"No\")", "passed": true, "time": 0.14, "memory": 14268.0, "status": "done"}, {"code": "H,M = map(int,input().split())\nattack = list(map(int,input().split()))\nif H - sum(attack) <=0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.18, "memory": 14184.0, "status": "done"}, {"code": "H, N = [int(n) for n in input().split()]\nA = sum([int(n) for n in input().split()])\n\nprint('Yes' if A >= H else 'No')", "passed": true, "time": 0.15, "memory": 14220.0, "status": "done"}, {"code": "h,n = map(int,input().split())\na = map(int,input().split())\n\nif sum(a) >= h:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.2, "memory": 14152.0, "status": "done"}, {"code": "h,n=map(int, input().split())\na=list(map(int, input().split()))\nprint(\"Yes\" if sum(a)>=h else \"No\")", "passed": true, "time": 0.48, "memory": 14176.0, "status": "done"}, {"code": "H,N = map(int,input().split())\nA = [int(i) for i in input().split()]\nfor i in range(N):\n    H -= A[i]\nif(H <= 0):\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.24, "memory": 14044.0, "status": "done"}, {"code": "H,N=map(int,input().split())\nA=list(map(int,input().split()))\nsum=0\nfor i in range(len(A)):\n    sum+=A[i]\nif H<=sum :\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.15, "memory": 14152.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = map(int, input().split())\n\nif H <= sum(A):\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.15, "memory": 14360.0, "status": "done"}, {"code": "H,N=map(int,input().split())\nA = list(map(int,input().split()))\nif sum(A)>=H:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.36, "memory": 14316.0, "status": "done"}, {"code": "H,N = map(int,input().split())\nAlist = list(map(int,input().split()))\n\nif H>sum(Alist):\n  print ('No')\nelse :\n  print ('Yes')", "passed": true, "time": 0.16, "memory": 14088.0, "status": "done"}, {"code": "h,n = map(int,input().split())\na = list(map(int,input().split()))\nprint(\"Yes\" if sum(a)>=h else \"No\")", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "H,M = map(int,input().split())\nattack = list(map(int,input().split()))\nif H - sum(attack) <=0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.24, "memory": 14072.0, "status": "done"}, {"code": "H, N = list(map(int,input().split()))\nA = list(map(int, input().split()))\nif H<=sum(A):\n  print(\"Yes\")\nelse:\n  print(\"No\")\n", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "h, n = map(int, input().split())\na = list(map(int, input().split()))\nprint(\"Yes\" if sum(a) >= h else \"No\")", "passed": true, "time": 0.23, "memory": 14072.0, "status": "done"}, {"code": "\nH, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nTotal_attack = sum(A)\n\nif H - Total_attack <= 0:\n    print('Yes')\n\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "H, N = list(map(int, input().split()))\nA = list(map(int, input().split()))\n\nprint(('Yes' if H <= sum(A) else 'No'))\n", "passed": true, "time": 0.15, "memory": 14268.0, "status": "done"}, {"code": "H, N = map(int, input().split())\n\nA = list(map(int, input().split()))\nsum_A = sum(A)\n\nif H <= sum_A:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.22, "memory": 14244.0, "status": "done"}, {"code": "\nH, N = map(int, input().split())\nA_list = []\nfor i in range(1, N+1):\n    A_list.append(\"A_\" + str(i))\n\nA_list = map(int, input().split())\nA_total = sum(A_list)\n\nif A_total >= H:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.15, "memory": 14112.0, "status": "done"}, {"code": "h, n = map(int, input().split())\na = list(map(int, input().split()))\n\nprint('Yes') if sum(a)>=h else print('No')", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "h,n = map(int,input().split())\nl = list(map(int,input().split()))\n\nif h-sum(l) <= 0:\n    print('Yes')\nelse :\n    print('No')", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "H,N = map(int,input().split())\nA = map(int,input().split())\nif H <= sum(A):\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "\nH,N=map(int,input().split())\nA = list(map(int,input().split()))\n\nif H - sum(A) <= 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "health, num = map(int, input().split())\nnum_list = [num for num in list(map(int, input().split()))]\nfor _ in num_list:\n  health -= _\n  \nif health > 0:\n  print(\"No\")\nelse:\n  print(\"Yes\")", "passed": true, "time": 0.22, "memory": 14084.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = list(map(int, input().split()))\nA1 = sum(A)\n\nif H - A1 <= 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.15, "memory": 14064.0, "status": "done"}, {"code": "h,n = map(int,input().split())\nlst = list(map(int,input().split()))\nif sum(lst) < h:\n  print('No')\nelse:\n  print('Yes')", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "h, n = map(int, input().split())\na = list(map(int, input().split()))\n\nif h<=sum(a):\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "H, N = list(map(int, input().split()))\nS = sum(list(map(int, input().split())))\n\nif H <= S:\n    print('Yes')\nelse:\n    print('No')\n", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "h,n = map(int,input().split())\na = list(map(int,input().split()))\nprint(\"Yes\" if sum(a)>=h else \"No\")", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "h,m = map(int,input().split())\na = list(map(int,input().split()))\nif h - sum(a) > 0:\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "import sys\n\nsys.setrecursionlimit(10 ** 8)\nini = lambda: int(sys.stdin.readline())\ninl = lambda: [int(x) for x in sys.stdin.readline().split()]\nins = lambda: sys.stdin.readline().rstrip()\ndebug = lambda *a, **kw: print(\"\\033[33m\", *a, \"\\033[0m\", **dict(file=sys.stderr, **kw))\n\n\ndef solve():\n    h, n = inl()\n    a = inl()\n    return sum(a) >= h\n\n\nprint(\"Yes\" if solve() else \"No\")\n\n", "passed": true, "time": 0.15, "memory": 14180.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nattack = sum(A)\nif attack >= H:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "h, n = list(map(int,input().split()))\na = list(map(int,input().split()))\nhitpoint=h\natack = a[:]\nfor e in atack:\n    hitpoint -= e\n    if hitpoint <= 0:\n        break\nif hitpoint <= 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nif H - sum(A) <= 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "H,N= list(map(int,input().split())) \nA= list(map(int,input().split())) \n\nlife=H\nfor i in range(N):\n    life-=A[i]\n    \nif life<=0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "H,N = list(map(int,input().split()))\nA = list(map(int,input().split()))\n\nif sum(A) >= H:\n    print('Yes')\nelse:\n    print('No')\n", "passed": true, "time": 0.23, "memory": 14300.0, "status": "done"}, {"code": "H,N = map(int, input().split())\n\ndata = list(map(int,input().split()))\n\nif H <= sum(data):\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.24, "memory": 14112.0, "status": "done"}, {"code": "H,N = map(int,input().split())\nA = sum(list(map(int,input().split())))\n\nif H - A <= 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.15, "memory": 14068.0, "status": "done"}, {"code": "h, n = map(int, input().split())\na = list(map(int, input().split()))\n\nif sum(a) >= h:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.24, "memory": 14080.0, "status": "done"}, {"code": "# \u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529bH\n# \u30a2\u30e9\u30a4\u30b0\u30de\u306e\u5fc5\u6bba\u6280\u306e\u7a2e\u985eN\n# i\u756a\u76ee\u306e\u5fc5\u6bba\u6280\u4f7f\u3046\u3068\u3001\u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529bAi\u6e1b\u3089\u305b\u308b\n\n# H - (A1 + A2 + A3...) <= 0 \u3068\u306a\u308b\u306a\u3089 'Yes',\n# \u306a\u3089\u306a\u3044\u306a\u3089'No'\u304c\u51fa\u529b\u3055\u308c\u308b\n\nh, n = map(int, input().split())\ndamage = list(map(int, input().split()))\n\nif h - sum(damage) <= 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.25, "memory": 14172.0, "status": "done"}, {"code": "h,n=map(int,input().split())\na=list(map(int,input().split()))\nans=0\nfor i in range(n):\n    ans+=a[i]\nif ans>=h:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "h, n = map(int, input().split())\n\nlst = [ int(i) for i in input().split() ]\n\nif sum(lst) >= h:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "h,n = list(map(int,input().split()))\na = list(map(int,input().split()))\nans = 0\nsum_a = sum(a)\n  \nif(sum_a >= h):\n  print(\"Yes\")\nelse:\n  print(\"No\")\n", "passed": true, "time": 0.14, "memory": 14360.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nSkills = list(map(int, input().split()))\nTotal = sum(Skills)\n\nif H <= Total:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "h, n = map(int, input(). split())\nlist01 = input().split()\nlist02 = [int(a) for a in list01]\nif sum(list02) >= h:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nanswer = sum(A)\n\nif answer >= H:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14352.0, "status": "done"}, {"code": "H,N = map(int,input().split())\nA = [int(x) for x in input().split()]\n\nfor i in range(N) :\n    H = H - A[i]\n\nif H > 0 :\n    print(\"No\")\nelse :\n    print(\"Yes\")", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = list(map(int, input().split()))\nprint(\"YNeos\"[sum(A)<H::2])", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "h, n = map(int, input().split())\nd = list(map(int, input().split()))\n\nif h - sum(d) <= 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = list(map(int, input().split()))\ndef hissatu():\n    HP = H -sum(A)\n    if HP>0:\n        return \"No\"\n    else:\n        return \"Yes\"\nprint(hissatu())", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "h,n=map(int,input().split())\nl=list(map(int,input().split()))\ns=0\nfor i in range(n):\n    s=s+l[i]\nif s>=h:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.15, "memory": 14328.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nfor Ai in list(map(int, input().split())):\n  H -= Ai\nif H > 0:\n  print('No')\nelse:\n  print('Yes')", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "h,n = list(map(int,input().split()))\na = list(map(int,input().split()))\nprint(('Yes' if h <= sum(a) else 'No'))\n", "passed": true, "time": 0.15, "memory": 14076.0, "status": "done"}, {"code": "H,N = map(int, input().split())\nA = list(map(int, input().split()))\n\ns = sum(A)\nif s >= H:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "H, N = map(int, input().split())\ndata = list(map(int, input().split()))\n\nif H - sum(data) > 0:\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}, {"code": "'''\n\u554f\u984c\uff1a\n    \u30a2\u30e9\u30a4\u30b0\u30de\u306f\u30e2\u30f3\u30b9\u30bf\u30fc\u3068\u6226\u3063\u3066\u3044\u307e\u3059\u3002\n\n    \u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u306f H \u3067\u3059\u3002\n    \u30a2\u30e9\u30a4\u30b0\u30de\u306f N \u7a2e\u985e\u306e\u5fc5\u6bba\u6280\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u3001\n    i \u756a\u76ee\u306e\u5fc5\u6bba\u6280\u3092\u4f7f\u3046\u3068\u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u3092 Ai \u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n    \u5fc5\u6bba\u6280\u3092\u4f7f\u3046\u4ee5\u5916\u306e\u65b9\u6cd5\u3067\u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u3092\u6e1b\u3089\u3059\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\n\n    \u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u3092 0 \u4ee5\u4e0b\u306b\u3059\u308c\u3070\u30a2\u30e9\u30a4\u30b0\u30de\u306e\u52dd\u3061\u3067\u3059\u3002\n\n    \u30a2\u30e9\u30a4\u30b0\u30de\u304c\u540c\u3058\u5fc5\u6bba\u6280\u3092\n    2 \u5ea6\u4ee5\u4e0a\u4f7f\u3046\u3053\u3068\u306a\u304f\u30e2\u30f3\u30b9\u30bf\u30fc\u306b\u52dd\u3064\u3053\u3068\u304c\u3067\u304d\u308b\u306a\u3089 Yes \u3092\u3001\n    \u3067\u304d\u306a\u3044\u306a\u3089 No \u3092\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n'''\n\n'''\n\u5236\u7d04\uff1a\n    1 \u2266 H \u2266 1000000000\n    1 \u2266 N \u2266 100000\n    1 \u2266 Ai \u2266 10000\n    \u5165\u529b\u4e2d\u306e\u3059\u3079\u3066\u306e\u5024\u306f\u6574\u6570\u3067\u3042\u308b\u3002\n'''\n\n# \u6a19\u6e96\u5165\u529b\u304b\u3089 H, N, Ai \u3092\u53d6\u5f97\u3059\u308b\nh, m = list(map(int, input().split()))\na = list(map(int, input().split()))\n\n# \u5fc5\u6bba\u6280\u30921\u56de\u305a\u3064\u4f7f\u3063\u305f\u5834\u5408\u3001\u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u3092\u3069\u308c\u3060\u3051\u524a\u308c\u308b\u304b\u8a08\u7b97\u3059\u308b\nhissatsu_hp = 0\nfor i in range(0, m):\n    hissatsu_hp += a[i]\n\n# \u540c\u3058\u5fc5\u6bba\u6280\u3092\u4f7f\u308f\u305a\u30a2\u30e9\u30a4\u30b0\u30de\u3092\u5012\u305b\u308b\u304b\u5224\u5b9a\u3057\u3066\u7d50\u679c\u3092\u51fa\u529b\u3059\u308b\nresult = \"\"\nif hissatsu_hp >= h:\n    result = \"Yes\"\nelse:\n    result = \"No\"\n\nprint(result)\n", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "attack = []\nh, n = map(int, input().split())\na = input().split()\n\nfor move in a:\n    move = int(move)\n    attack.append(move)\n\nresult = h - sum(attack)\nif result <= 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "H,N=list(map(int,input().split()))\nA=list(map(int,input().split()))\nA1=sum(A)\n\nif H-A1<=0:\n    print('Yes')\nelse:\n    print('No')\n", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "h,n = map(int,input().split())\na = list(map(int,input().split()))\nif sum(a) < h:\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "H,N=list(map(int,input().split()))\nA=list(map(int,input().split()))\ns=0\nflg=True\nfor i in range(N):\n  s+=A[i]\n  if s>=H:\n    print('Yes')\n    flg=False\n    break\nif flg:\n\tprint('No')\n", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "h, n = list(map(int, input().split()))\na = list(map(int, input().split()))\n\nhp = 0\nresult = 'No'\n\nfor i in range(n):\n    hp = hp + a[i]\n    if hp >= h:\n        result = 'Yes'\n        break\n\nprint(result)\n", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "H, M = list(map(int, input().split()))\n\nA = list(map(int, input().split()))\n\na = (sum(A))\n\nif a >= H:\n    ans = \"Yes\"\nelse:\n    ans = \"No\"\n\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "# B - Common Raccoon vs Monster\n\n# H N\nH, N = list(map(int, input().split()))\nmy_list = list(map(int, input().split(maxsplit=N)))\n\nif H <= sum(my_list):\n    answer = 'Yes'\nelse:\n    answer = 'No'\n\nprint(answer)\n", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "H,N = list(map(int, input() .split()))\nA = list(map(int,input().split()))\nif H <= sum(A):\n    print('Yes')\nelse:\n    print('No')\n", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "h, n = map(int, input().split())\na = list(map(int, input().split()))\n\nx = sum(a)\n\nif (h - x) <= 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "# \u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u306f H\n# \u30a2\u30e9\u30a4\u30b0\u30de\u306f N \u7a2e\u985e\u306e\u5fc5\u6bba\u6280\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\n# i\u756a\u76ee\u306e\u5fc5\u6bba\u6280\u3092\u4f7f\u3046\u3068\u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u3092 Ai \u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n# \u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u30920\u4ee5\u4e0b\u306b\u3059\u308c\u3070\u3001\u30a2\u30e9\u30a4\u30b0\u30de\u52dd\u3061\n# \u30a2\u30e9\u30a4\u30b0\u30de\u304c\u540c\u3058\u5fc5\u6bba\u6280\u3092 2 \u5ea6\u4ee5\u4e0a\u4f7f\u3046\u3053\u3068\u306a\u304f\u30e2\u30f3\u30b9\u30bf\u30fc\u306b\u52dd\u3064\u3053\u3068\u304c\u3067\u304d\u308b\u306a\u3089 Yes \u3092\u3001\n# \u3067\u304d\u306a\u3044\u306a\u3089 No \u3092\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\nH, N = list(map(int, input().split()))\ndata = list(map(int, input().split()))\n\nif H - sum(data) > 0:\n    print('No')\nelse:\n    print('Yes')\n", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nif H - sum(A) <= 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.22, "memory": 14080.0, "status": "done"}, {"code": "#ABC153B\nh,n = map(int,input().split())\na = list(map(int,input().split()))\nprint(\"Yes\" if sum(a) >= h else \"No\")", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "import math\nH,N = map(int,input().split())\nA = list(map(int,input().split()))\n\nif H <= sum(A):\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "# \u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u4f53\u529b\u306f H\n# \u30a2\u30e9\u30a4\u30b0\u30de\u306e\u5fc5\u6bba\u6280\u306f N \u7a2e\u985e\n# \u30a2\u30e9\u30a4\u30b0\u30de\u304c\u540c\u3058\u5fc5\u6bba\u6280\u3092 2 \u5ea6\u4ee5\u4e0a\u4f7f\u3046\u3053\u3068\u306a\u304f\n# \u30e2\u30f3\u30b9\u30bf\u30fc\u306b\u52dd\u3064\u3053\u3068\u304c\u3067\u304d\u308b\u306a\u3089 Yes \u3092\u3001\n# \u3067\u304d\u306a\u3044\u306a\u3089 No \u3092\u51fa\u529b\u3002\n\nH, N = map(int,input().split())\nA = list(map(int,input().split()))\nanswer = sum(A)\n\nif H <= answer :\n    print( \"Yes\" )\nelse:\n    print( \"No\" )", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "H,N=map(int,input().split())\nA=list(map(int,input().split()))\nif sum(A)>=H:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}]