qyliang/CodeNanoFix huggingface dataset:
Buggy code:
h,n = list(map(int,input().splii()))
l = list(map(int,input().splii()))

if sum(l)<h:
  print("No")
else:
  print("Yes")

Fixed code:
h,n = list(map(int,input().split()))
l = list(map(int,input().split()))
 
if sum(l)<h:
  print("No")
else:
  print("Yes")
Buggy code:
H, N = map(int, input().split())
L= list(map(int, input().split())

if sum(L) >= H:
	print('Yes')
else:
	print('No')

Fixed code:
H,N=map(int,input().split())
A=list(map(int,input().split()))
if sum(A)>=H:
  print('Yes')
else:
  print('No')
Buggy code:
A, gomi = int(input().split())
print('Yes' if A <= list(map(int,input().split())) else 'No')

Fixed code:
A, gomi = map(int, input().split())
print('Yes' if A <= sum(list(map(int,input().split()))) else 'No')
Buggy code:
H,N = map(int,input().split())
A = list(map(int,input().split()))
sum=0
for a in A:
    sum += a
print("Yes") if sum> H else print("No") 

Fixed code:
H,N = map(int,input().split())
A = list(map(int,input().split()))
sum=0
for a in A:
    sum += a
print("Yes") if sum >= H else print("No")
Buggy code:
    import math

    h, n = map(int, input().split())
    a = map(int, input().split())
    if h - sum(a) > 0:
        print("No")
    else:
        print("Yes")

Fixed code:
import math
 
h, n = map(int, input().split())
a = map(int, input().split())
if h - sum(a) > 0:
    print("No")
else:
    print("Yes")
Buggy code:
import os
import sys

def main():
    H , A = map(int , input().split())
    list = [s for s in input().split()]
    c = sum(int(i) for i in list)
    if c > H :
        print ('Yes')
    else :
        print ('No')
    #print (str(X))

if __name__ == '__main__':
    main()

Fixed code:
import os
import sys

def main():
    H , A = map(int , input().split())
    list = [s for s in input().split()]
    c = sum(int(i) for i in list)
    if c >= H :
        print ('Yes')
    else :
        print ('No')
    #print (str(X))

if __name__ == '__main__':
    main()
Buggy code:
h,n=map(int, input().split())
aList=list(map(int, input().split()))
result = h
for a in aList:
  result -= a
return 'Yes' if result <= 0 else 'No'

Fixed code:
h,n=map(int, input().split())
aList=list(map(int, input().split()))
result = h
for a in aList:
  result -= a
print('Yes') if result <= 0 else print('No')
Buggy code:
h,n=map(int,inpiut().split())
a=[int(i) for i in input().split()]

if sum(a)>h:
    print("Yes")
else:
    print("No")

Fixed code:
h,n=map(int,input().split())
a=[int(i) for i in input().split()]

if sum(a)>=h:
    print("Yes")
else:
    print("No")
Buggy code:
H, N = map(int,input().split())
A = list(map(int, input().split()))

sum = 0

for i in range(A.length()):
    sum += A[i]

if(sum >= H):
    print("Yes")
else:
    print("No")

Fixed code:
H, N = map(int, input().split())
A = list(map(int,input().split()))

sum = 0

for i in range(len(A)):
    sum += A[i]

if(sum >= H):
    print("Yes")
else:
    print("No")
Buggy code:
h, n, *a = map(int, input().split())

if sum(a) >= h:
    print("Yes")
else:
    print("No")


Fixed code:
h,n = map(int,input().split())
a = list(map(int, input().split()))

if sum(a) >= h:
    print("Yes")
else:
    print("No")
Buggy code:
H,N=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
  
total=H-sum(A[0:2])
if total<=0:print("Yes")
else:print("No")

Fixed code:
H,N=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
  
total=H-sum(A[0::])
if total<=0:print("Yes")
else:print("No")
Buggy code:
H,N=map(int, input().split())
A = list(map(int, input().split()))

if(max(A) > H):
  print("Yes")
elif(sum(A) > H):
  print("Yes")
else:
  print("No")


Fixed code:
H, N = map(int, input().split())
A = list(map(int, input().split()))
  
if sum(A) >= H:
  print("Yes")
else:
  print("No")
Buggy code:
H,N=map(int,input().split())
L=list(map(int,input().split()))
a=sum(L)
if H>L:
  print('No')
else:
  print('Yes')
       

Fixed code:
H,N=map(int,input().split())
L=list(map(int,input().split()))
a=sum(L)
if H>a:
  print('No')
else:
  print('Yes')
Buggy code:
H, N = input().split()
H = int(H)
N = int(N)

A = input().split()

if sum(A)>=H:
  print('Yes')
else:
  print('No')

Fixed code:
H, N = map(int, input().split())
A = map(int, input().split())

if H > sum(A):
    print('No')
else:
    print('Yes')
Buggy code:
h, n = input().split(' ')
as = list(map(int, input().split(' ')))

if sum(as) >= h:
  print('Yes')
else:
  print('No')

Fixed code:
h, n = list(map(int, input().split(' ')))
a = list(map(int, input().split(' ')))
 
if sum(a) >= h:
  print('Yes')
else:
  print('No')
Buggy code:
H, N = input().split()
H = int(H)
N = int(N)
A= input()
total=0
for i in A:
    total += int(i)
if total >= H:
    print("Yes")
elif total < H:
    print("No")

Fixed code:
H, N = input().split()
H = int(H)
N = int(N)
A= input().split()
total=0
for i in A:
    total += int(i)
if total >= H:
    print("Yes")
elif total < H:
    print("No")
Buggy code:
input_list = list(map(int, input().split()))
hp = input_list[0]
arts = input_list[1]
arts_list = list(map(int, input().split()))
if hp < sum(arts_list):
  print(Yes)
else:
  print(No)


Fixed code:
input_list = list(map(int, input().split()))
hp = input_list[0]
arts = input_list[1]
arts_list = list(map(int, input().split()))
if hp <= sum(arts_list):
  print("Yes")
else:
  print("No")
Buggy code:
H,N = map(int,input().split())
A = list(map(int,input().split()))


ans = 'yes'


if sum(A) < H:
    ans = 'No'


print(ans)


Fixed code:
H,N = map(int,input().split())
A = list(map(int,input().split()))


ans = 'Yes'


if sum(A) < H:
    ans = 'No'


print(ans)
Buggy code:
N = int(input())
A = list(map(int, input().split()))
if sum(A)>=H:
    print("Yes")
else:
    print("No")

Fixed code:
H,N = map(int,input().split())
A = list(map(int, input().split()))
if sum(A)>=H:
    print("Yes")
else:
    print("No")
Buggy code:
h ,n =map(int,input().split())
a =list(map(int,input().split()))

if sum(a) <= h:
    print("No")
else:
    print("Yes")

Fixed code:
h, n = map(int, input().split())
a = list(map(int, input().split()))

if h - sum(a) <= 0:
    print('Yes')
else:
    print('No')
Buggy code:
import math
a = [list(map(int,input().split())) for l in range(2)]
if sum(a[1]) >= a[0][0]
	print("Yes")
else
	print("No")

Fixed code:
a = [list(map(int,input().split())) for l in range(2)]

if sum(a[1]) >= a[0][0]:
    print("Yes")
else:
    print("No")
Buggy code:
h ,n =map(int,input().split())
a =list(map(int,input().split()))

if sum(a) >= h:
    print("No")
    
else:
    print("Yes")

Fixed code:
import math
h, n = map(int, input().split())
a = sum(list(map(int, input().split())))
if h>a:
    print('No')
else:
    print('Yes')
Buggy code:
import fileinput

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

print(sum(a))

if h <= sum(a):
    print("Yes")
else:
    print("No")




Fixed code:
h,n=map(int,input().split())
a=list(map(int,input().split()))
if h<=sum(a):
    print('Yes')
else:
    print('No')
Buggy code:
a, b = map(int, input().split())
c = map(int, input().split())
if a <= c.sum():
  print('Yes')
else:"
  print('No')

Fixed code:
a, b = map(int, input().split())
c = list(map(int, input().split()))
if a <= sum(c):
  print('Yes')
else:
  print('No')
Buggy code:
H, N = input().split(" ")
A = list(map(int, input().split()))
if sum(A) < H:
  print("No")
else:
  print("Yes")

Fixed code:
H, N = input().split(" ")
A = list(map(int, input().split()))
if sum(A) < int(H):
  print("No")
else:
  print("Yes")
Buggy code:
H, N = map(int,(input().split()))
A = list(map(int,(input().split())))
sum=0
for i in range(len(A)):
  sum += A[i]
if(sum>=N):
  print("Yes")
else:
  print("No")

Fixed code:
H, N = map(int,(input().split()))
A = list(map(int,(input().split())))
sum=0
for i in range(len(A)):
  sum += A[i]
if(sum>=H):
  print("Yes")
else:
  print("No")
Buggy code:
import math
H,N=map(int,input().split())
A=list(map(int,input().split()))

if H < sum(A):
    print('Yes')
else:
    print('No')

Fixed code:
import math
H,N=map(int,input().split())
A=list(map(int,input().split()))

if H <= sum(A):
    print('Yes')
else:
    print('No')
Buggy code:
H, N = map(int, input().split())
A = map(int, input().split())
Ans = 0

for x in A:
  Ans += x
  
if(Ans >= H):
  print(`Yes`)
else:
  print(`No`)

Fixed code:
H, N = map(int, input().split())
A = map(int, input().split())
Ans = 0
 
for x in A:
  Ans += x
  
if Ans >= H:
  print('Yes')
else:
  print('No')
Buggy code:
h, n = map(int, input().split())
a = list(map(int, input().split()))
ans = ""
if sum(a) >= h:
  ans = "Yes"
else:
  ans = "No"

Fixed code:
h,n = map(int,input().split())
a = list(map(int,input().split()))
if h > sum(a):
    print("No")
else:
    print("Yes")
Buggy code:
H, N = map(int, input().split())
l = list(map(int, input().split()))
print('Yes' if H <= sum(l) else 'NO')

Fixed code:
H, N = map(int, input().split())
l = list(map(int, input().split()))
print('Yes' if H <= sum(l) else 'No')
Buggy code:
"""
NTC here
"""
import sys
inp= sys.stdin.readline
input = lambda : inp().strip()
flush= sys.stdout.flush
# import threading
# sys.setrecursionlimit(10**6)
# threading.stack_size(2**25)

def iin(): return int(input())
def lin(): return list(map(int, input().split()))

# range = xrange
# input = raw_input


def main():
    h, n = lin()
    a = lin()
    sm = sum(a)
    print('Yes' if h<sm else 'No')



            
        

        
main()
# threading.Thread(target=main).start()


Fixed code:
"""
NTC here
"""
import sys
inp= sys.stdin.readline
input = lambda : inp().strip()
flush= sys.stdout.flush
# import threading
# sys.setrecursionlimit(10**6)
# threading.stack_size(2**25)

def iin(): return int(input())
def lin(): return list(map(int, input().split()))

# range = xrange
# input = raw_input


def main():
    h, n = lin()
    a = lin()
    sm = sum(a)
    print('Yes' if h<=sm else 'No')



            
        

        
main()
# threading.Thread(target=main).start()
Buggy code:
h,n = map(int,input().split())
ans = sum([int(i) for i in input().split()])

print(ans)
if ans >= h:
  print('Yes')
else:
  print('No')

Fixed code:
h,n = map(int,input().split())
ans = sum([int(i) for i in input().split()])

if ans >= h:
  print('Yes')
else:
  print('No')
Buggy code:
H, N = input().split()
lis = list(map(int,input().split())
A =sum(lis)
if H > A:
    print("No")
else:
    print("Yes")

Fixed code:
H,N = map(int,input().split())
A = list(map(int,input().split()))

print('Yes') if sum(A) >= H else print('No')
Buggy code:
,N = map(int,input().split())
Ai = map(int, input().split())
 
if sum(A) >= H:
  print('Yes')
else:
  print('No')

Fixed code:
H,N = map(int,input().split())
Ai = map(int, input().split())
 
if sum(Ai) >= H:
  print('Yes')
else:
  print('No')
Buggy code:
h, n = list(map(int,input().split()))
a = list(map(int,input().split()))

if(sum(a) > h):
    print('Yes')
else:
    print('No')

Fixed code:
h, n = map(int, input().split())
a = list(map(int, input().split()))

if sum(a) >= h:
  ans = "Yes"
else: 
  ans = "No"

print(ans)
Buggy code:
h, n = map(int, input().split())
A = list(map(int, input().split()))
flag = False

for a in A:
  h -= a
  if h<0:
    flag = True
    break

print("Yes" if flag else "No")

Fixed code:
h, n = map(int, input().split())
A = list(map(int, input().split()))
flag = False

for a in A:
  h -= a
  if h<=0:
    flag = True
    break

print("Yes" if flag else "No")
Buggy code:
H, N = map(int, input().split())
A = sum(list(map(int, input().split())))

if H < A:
    print('Yes')
else:
    print('No')

Fixed code:
H, N = map(int, input().split())
A = sum(list(map(int, input().split())))

if H <= A:
    print('Yes')
else:
    print('No')
Buggy code:
list1 = input().split(' ')
list2 = input().split(' ')
list2 =  [int(s) for s in list2]

num = int(list1[1])
HP = int(list1[0])
D = 0
for N in list2:
  D += N
  
if D > HP:
  print('Yes')
else:
  print('No')

Fixed code:
list1 = input().split(' ')
list2 = input().split(' ')
list2 =  [int(s) for s in list2]

num = int(list1[1])
HP = int(list1[0])
D = 0
for N in list2:
  D += N

if D >= HP:
  print('Yes')
else:
  print('No')
Buggy code:
H,_=map(int,input().split())
if H <= list(map(int,input().split())):
    print("Yes")
else:
    print("No")

Fixed code:
H, _ = map(int, input().split())
if H <= sum(map(int, input().split())):
    print("Yes")
else:
    print("No")
Buggy code:
n=list(map(int,input().split()))
m=list(map(int,input().split()))
if(sum(m)>n[0]):
  print("Yes")
else:
  print("No")

Fixed code:
n=list(map(int,input().split()))
m=list(map(int,input().split()))
if(sum(m)>=n[0]):
  print("Yes")
else:
  print("No")
Buggy code:
k,n=map(int,input().split())
a=list(map(int,intput().split()))
if sum(a)>=k:
  print("Yes")
else:
  print("No")

Fixed code:
k,n=map(int,input().split())
a=list(map(int,input().split()))
if sum(a)>=k:
  print("Yes")
else:
  print("No")
Buggy code:
H, N = list(map(str, input().split()))
A = list(map(str, input().split()))

if sum(A)>=H:
    print("Yes")
else:
    print("No")

Fixed code:
H, N = map(int, input().split())
A = list(map(int,input().split()))
sum = sum(A)

if sum >= H:
    print("Yes")
else:
    print("No")
Buggy code:
H, N = map(int, input().split())
A = list(map(int, input().split()))
print(sum(A))
if sum(A) >= H:
    print("Yes")
else:
    print("No")

Fixed code:
import math
H,N = map(int, input().split())
A = list(map(int, input().split()))

if sum(A) >= H:
  print("Yes")
else:
  print("No")
Buggy code:
import numpy as np

ene=list(map(int, input().split()))
num=list(map(int, input().split()))

if ene[0]>np.array(num).sum():
    print("NO")
else:
    print("Yes")

Fixed code:
import numpy as np

ene=list(map(int, input().split()))
num=list(map(int, input().split()))

if ene[0]>np.array(num).sum():
    print("No")
else:
    print("Yes")
Buggy code:
import sys
# s = sys.stdin.readlines()
inputs = sys.stdin.readline()
A = sys.stdin.readline()
inputs = inputs.split()
H, N = inputs[0], inputs[1]
A = A.split()

A_sum = 0
for i in range(len(A)):
    A_sum += A[i]

if A_sum < H:
    print('No')
else:
    print('Yes')

Fixed code:
import sys
# s = sys.stdin.readlines()
inputs = sys.stdin.readline()
A = sys.stdin.readline()
inputs = inputs.split()
H, N = int(inputs[0]), int(inputs[1])
A = A.split()

A_sum = 0
for i in range(len(A)):
    A_sum += int(A[i])

if A_sum < H:
    print('No')
else:
    print('Yes')
Buggy code:
H, N = input().split()
A = list(int(input().split()))
A = [int(a) for a in A]
if H > sum(A):
    print('No')
else:
    print('Yes')

Fixed code:
H, N = input().split()
A = list(input().split())
H = int(H)
N = int(N)
A = [int(a) for a in A]
if H > sum(A):
    print('No')
else:
    print('Yes')
Buggy code:
h, _ = list(map(int, input().split()))
a = list(map(int, input().split()))
s = sum(a)
if h < s:
    print("Yes")
else:
    print("No")

Fixed code:
h, _ = list(map(int, input().split()))
a = list(map(int, input().split()))
s = sum(a)
if h > s:
  print("No")
else:
  print("Yes")
Buggy code:
h,n = map(int,input().split())
a = list(map(int,input().split()))

if n > sum(a):
    print('No')
else:
    print('Yes')

Fixed code:
h, n = map(int, input().split())
a = list(map(int, input().split()))

print('Yes' if sum(a) >= h else 'No')
Buggy code:
h,n=map(int,input().split())
'YNeos'[sum([int(i)for i in input().split()])<n::2]

Fixed code:
h,n=map(int,input().split())
print('YNeos'[sum([int(i)for i in input().split()])<h::2])
Buggy code:
h,n=map(int,input().split())
if sum(list(map(int,input().split())))<h:
    print('Yes')
else:
    print('No')

Fixed code:
h,n=map(int,input().split())
if sum(list(map(int,input().split())))<h:
    print('No')
else:
    print('Yes')
Buggy code:
H, N = map(int, input().split())
if sum(map(int, input().split())) >= N:
  print("Yes")
else:
  print("No")

Fixed code:
H, N = map(int, input().split())
if sum(map(int, input().split())) >= H:
  print("Yes")
else:
  print("No")
Buggy code:
h, n = map(int, input().split())
an = list(map(int, input().split()))

if sum(an) > h:
  print('No')
else:
  print('Yes')

Fixed code:
h,n = map(int,input().split())
a = sum(list(map(int,input().split())))
if h > a:
    print('No')
else:
    print('Yes')
Buggy code:
a,b=map(int,input().split())
n=list(map(int,input().split()))
if a<=sum(n):
  print('Yes')
else:
  print('no')

Fixed code:
a,b=map(int,input().split())
n=list(map(int,input().split()))
if a<=sum(n):
  print('Yes')
else:
  print('No')
Buggy code:
a,b=input().split()
l = list(map(int, input().split()))
a=int(a)
b=int(b)
if a >= sum(l):
  print('Yes')

else:
  print('No')


Fixed code:
a,b=input().split()
l = list(map(int, input().split()))
a=int(a)
b=int(b)
if a <= sum(l):
  print('Yes')

else:
  print('No')
Buggy code:
h, n = map(int, input().split())
a = list(map(int,input().split()))
if sum(a) > h :
    print("Yes")
else:
    print("No")

Fixed code:
h, n = map(int, input().split())
a = list(map(int,input().split()))
if sum(a) >= h :
    print("Yes")
else:
    print("No")
Buggy code:
h, n = map(int, input().split())
a = list(map(int, input().split()))

if h >= sum(a):
  print("Yes")
else:
  print("No")

Fixed code:
h, n = map(int, input().split())
a = list(map(int, input().split()))
if (sum(a) >= h):
    print("Yes")
else:
    print("No")
Buggy code:
H,N=[int(s) for s in input().split()]
ls=[int(s) for s in input().split()]
if H<sum(ls):
  print('No')
else:
  print('Yes')

Fixed code:
H,N=[int(s) for s in input().split()]
ls=[int(s) for s in input().split()]
if H>sum(ls):
  print('No')
else:
  print('Yes')
Buggy code:
H, N = [int(i) for i in input().split(' ')]
A = [int(i) for i in input().split(' ')]
if H - sum(A) < 0:
  print('Yes')
else:
  print('No')

Fixed code:
H, N = [int(i) for i in input().split(' ')]
A = [int(i) for i in input().split(' ')]
if H - sum(A) <= 0:
  print('Yes')
else:
  print('No')
Buggy code:
def main():
    h,n = map(int,input().split())
    a_lst = list(map(int,input().split()))
    for attack in a_lst:
        h == attack
    if h <= 0:
        print("Yes")
    else:
        print("No")



if __name__ == '__main__':
    main()


Fixed code:
def main():
    h,n = map(int,input().split())
    a_lst = list(map(int,input().split()))
    for attack in a_lst:
        h -= attack
    if h <= 0:
        print("Yes")
    else:
        print("No")



if __name__ == '__main__':
    main()
Buggy code:
h, b = list(map(int, input().split()))
a = sorted(list(map(int, input().split())), reverse=True)
for i in a:
    h -= i
    if h < 0:
        print('Yes')
        exit()
print('No')

Fixed code:
h, b = list(map(int, input().split()))
a = sorted(list(map(int, input().split())), reverse=True)
for i in a:
    h -= i
    if h <= 0:
        print('Yes')
        exit()
print('No')
Buggy code:
i = list(map(int, input().split()))
j = list(map(int, input().split()))
if i[0]<=sum(j):
  print(Yes)
else:
  print(No)

Fixed code:
i = list(map(int, input().split()))
j = list(map(int, input().split()))
if i[0]<=sum(j):
  print("Yes")
else:
  print("No")
Buggy code:
from sys import stdin
H,N = [int(x) for x in stdin.readline().rstrip().split()]
A = [int(x) for x in stdin.readline().rstrip().split()]
if N <= sum(A):
    print("Yes")
else:
    print("No")

Fixed code:
from sys import stdin
H,N = [int(x) for x in stdin.readline().rstrip().split()]
A = [int(x) for x in stdin.readline().rstrip().split()]
if H <= sum(A):
    print("Yes")
else:
    print("No")
Buggy code:
H, N = map(int, input().split())
A = list(map(int, input().split()))
print('Yes' if sum(A) > H else 'No')

Fixed code:
H, N = map(int, input().split())
A = list(map(int, input().split()))

print('Yes' if sum(A) >= H else 'No')
Buggy code:
H,N = map(int, input().split())
A = list(map(int, input().split()))
print(sum(A))
if H <= sum(A):
    print('Yes')
else:
    print('No')

Fixed code:
H,N = map(int, input().split())
A = list(map(int, input().split()))
if H <= sum(A):
    print('Yes')
else:
    print('No')
Buggy code:
H, N = input().split()
A = input().split()

if int(H)-sum(A) <=0:
    print("Yes")
else:
    print("No")

Fixed code:
H, N = input().split()
A = list(map(int, input().split()))

if int(H)-sum(A) <=0:
    print("Yes")
else:
    print("No")
Buggy code:
h,n = map(int,input.split())
a = list(map,input().split())

if sum(a) >= h:
    print('Yes')
else:
    print('No')


Fixed code:
h,n=map(int,input().split())
A=list(map(int,input().split()))
if(sum(A)>=h):
  print("Yes")
else:
  print("No")
Buggy code:
H,N = map(int,input().split())
A = list(map(int,input().split()))
if sum(A) > N:
  print("Yes")
else:
  print("No")

Fixed code:
H,N = map(int,input().split())
A = list(map(int,input().split()))
if sum(A) >= H:
  print("Yes")
else:
  print("No")
Buggy code:
h, a = map(int, input().split(" "))
aL = list(map(int, input().split(" ")))

if sum(aL) >= a:
    print("Yes")
    exit()
print("No")

Fixed code:
h, a = map(int, input().split(" "))
aL = list(map(int, input().split(" ")))

if sum(aL) >= h:
    print("Yes")
    exit()
print("No")
Buggy code:
h, n = map(int, input().split())
A = list(map(int, input().split()))
print('Yes') if sum(A)>h else print('No')

Fixed code:
h, n = map(int, input().split())
A = list(map(int, input().split()))
print('Yes') if sum(A)>=h else print('No')
Buggy code:
val = input()
h, n = [int(x) for x in val.split()]
val = input()
a = [int(x) for x in val.split()]

sum = a.sum()
if h - sum <= 0:
  print("Yes")
else:
  print("No")


Fixed code:
val = input()
h, n = [int(x) for x in val.split()]
val = input()
a = [int(x) for x in val.split()]
 
sum = sum(a)
if h - sum <= 0:
  print("Yes")
else:
  print("No")
Buggy code:
HN=input()
HN_list=HN.split()
H=int(HN_list[0])
N=int(HN_list[1])
A=input()
A_list=A.split()
aaa=map(int, A_list)
A_sum=sum(aaa)
if A_sum>H:
    print("Yes")
else:
    print("No")

Fixed code:
HN=input()
HN_list=HN.split()
H=int(HN_list[0])
N=int(HN_list[1])
A=input()
A_list=A.split()
aaa=map(int, A_list)
A_sum=sum(aaa)
if A_sum>=H:
    print("Yes")
else:
    print("No")
Buggy code:
H, N = map(int,input().split())
A = list(map(int,input().split())
         
if H <= sum(A): print("Yes")
else: print("No")   

Fixed code:
H, N = map(int, input().split())
a = list(map(int, input().split()))
if H <= sum(a):
    print('Yes')
else:
    print('No')
Buggy code:
h,n = map(int,input().split())
a = int().rstrip().split()
c = 0
for b in a:
  c += b
if h > c:
  print('No')
else:
  print('Yes')

Fixed code:
h,n = map(int,input().split())
z = input()
a = z.split()
c = 0
for b in a:
  c += int(b)
if h > c:
  print('No')
else:
  print('Yes')
Buggy code:
H,N=map(int,input().split())
a=list(map(int,input().split()))
if sum(a)>H:
    print('Yes')
else:
    print('No')

Fixed code:
H,N = map(int,input().split())
A = list(map(int,input().split()))
if sum(A) >= H:
    print('Yes')
else:
    print('No')
Buggy code:
H,N = list(map(int,input().split()))
alist = list(map(int,input().split()))
if H < sum(alist):
  print("Yes")
else:
  print("No")

Fixed code:
H,N = list(map(int,input().split()))
alist = list(map(int,input().split()))
if H <= sum(alist):
  print("Yes")
else:
  print("No")
Buggy code:
H,N = (int(x) for x in input().split())
a = list(map(int,input(),split()))

if sum(a) >= H:
  print('Yes')
else:
  print('No')

Fixed code:
H,N = (int(x) for x in input().split())
a = list(map(int,input().split()))

if sum(a) >= H:
  print('Yes')
else:
  print('No')
Buggy code:
h, n = [int(i) for i in input().split()]
a = [int(j) for j in input().split()]

if(sum(a) > h):
    print("Yes")
else:
    print("No")


Fixed code:
h, n = [int(i) for i in input().split()]
a = [int(j) for j in input().split()]

if(sum(a) >= h):
    print("Yes")
else:
    print("No")
Buggy code:
import sys
# sys.setrecursionlimit(100000)


def input():
    return sys.stdin.readline().strip()


def input_int():
    return int(input())


def input_int_list():
    return [int(i) for i in input().split()]


def main():
    h, n = input_int_list()
    A = input_int_list()
    if sum(A) > h:
        print("Yes")
    else:
        print("No")
    return


if __name__ == "__main__":
    main()


Fixed code:
import sys
# sys.setrecursionlimit(100000)


def input():
    return sys.stdin.readline().strip()


def input_int():
    return int(input())


def input_int_list():
    return [int(i) for i in input().split()]


def main():
    h, n = input_int_list()
    A = input_int_list()
    if sum(A) >= h:
        print("Yes")
    else:
        print("No")
    return


if __name__ == "__main__":
    main()