qyliang/CodeNanoFix huggingface dataset:
Buggy code:
N = int(input())
A = int(input())
if N > 1000:
    N = N%1000
if N >= A:
    print("Yes")
else:
    print("No")

Fixed code:
N = int(input())
A = int(input())
if N > 1000:
    N = N%1000
if N <= A:
    print("Yes")
else:
    print("No")
Buggy code:
n = int(input())
a = int(input())

if a<=(n%500):
    print("Yes")
else:
    prit("No")


Fixed code:
n=int(input())
a=int(input())
if n%500<=a:
  print("Yes")
else:
  print("No")
Buggy code:
n=int(input())
a=int(input())
print("Yes" if (N%500)<=a else "No")

Fixed code:
n = int(input())
a = int(input())

print("Yes" if n%500 <= a else "No")
Buggy code:
b = int(input())
if a%500 < b:
    print('Yes')
else:
    print('No')

Fixed code:
a = int(input())
b = int(input())
if a%500 <= b:
    print('Yes')
else:
    print('No')
Buggy code:
a = [int(input()) for i in range(2)]
n = a[0] % 500
if a >= n:
  print('Yes')
else:
  print('No')

Fixed code:
a = [int(input()) for i in range(2)]
n = a[0] % 500
if a[1] >= n:
  print('Yes')
else:
  print('No')
Buggy code:
a = int(input())
n = int(input())
if a >=　(n % 500):
  print('Yes')
else:
  print('No')

Fixed code:
n=int(input())%500
a=int(input())
print('Yes' if a>=n else 'No')
Buggy code:
A = int(input())
N = int(input())
print("Yes" if N % 500 < A else "No")

Fixed code:
N = int(input())
A = int(input())
if(N%500<=A):
  print("Yes")
else :
  print("No")
Buggy code:
N = int(input())
A = int(input())

if N - (N // 500) * 500 <= A:
  print("Yes")
else:
  pritn("No")

Fixed code:
N = int(input())
A = int(input())

if N - (N // 500) * 500 <= A:
  print("Yes")
else:
  print("No")
Buggy code:
n,a=[int(input())for i range(2)]
b=n%500
if a>=b:
    print("Yes")
else:
    print("No")

Fixed code:
n,a=[int(input()) for i in range(2)]
b=n%500
if a>=b:
    print("Yes")
else:
    print("No")
Buggy code:
a=input()
n=input()
if a > 500%: 
  print "Yes"
else: 
  print"No"

Fixed code:
n=int(input())
a=int(input())
n=n%500
if n>a:
    print("No")
else:
    print("Yes")
Buggy code:
N=int(input())
A=int(input())
flag=True
ans="No"

for i in range(0,A+1):
  flag:
    for j in range(0,N//500+1)):
      if i+500*j==N:
        ans="Yes"
        flag=False
        break

print(ans)

Fixed code:
N=int(input())
A=int(input())
flag=True
ans="No"

for i in range(0,A+1):
  if flag:
    for j in range(0,N//500+1):
      if i+500*j==N:
        ans="Yes"
        flag=False
        break

print(ans)
Buggy code:
n=int(input())
a=int(input())
print("No") if (n%500)>=a else ptrint("Yes")

Fixed code:
n=int(input())
a=int(input())
print("No") if (n%500) > a else print("Yes")
Buggy code:
N=input()
A=input()
B=N%500
if(int(B)<int(A)):
    print("Yes")
else:
    print("No")


Fixed code:
N = int(input())
A = int(input())

if(N%500 <= A):
  print("Yes")
else:
  print("No")
Buggy code:
n, a = [int(input()) for _ range(2)]
print("Yes"if n%500<=a else"No")

Fixed code:
n, a = [int(input()) for _ in range(2)]
print("Yes" if n%500<=a else "No")
Buggy code:
a=int,input()
b=int,input()
if(a%500 < b):
  print("Yes")
else:
  print("No")
    

Fixed code:
a=int(input())
b=int(input())
if(a%500 <= b):
  print("Yes")
else:
  print("No")
Buggy code:
N=input()
A=input()
N!=0
B=N%500
if(B < A):
    print("Yes")
else:
    print("No")

Fixed code:
N=int(input())
A=int(input())
N!=0
B=int(N%500)
if(B <= A):
    print("Yes")
else:
    print("No")
Buggy code:
n=input()
a=input()
if n%500 <=a:
    print('Yes')
else:
    print('No')    

Fixed code:
n = int(input())
a = int(input())
if n%500<=a:
  print('Yes')
else:
  print('No')
Buggy code:
N=int(input())
A==int(input())

N %= 500

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





Fixed code:

N = int(input())
A = int(input())

Tmp = N % 500

if A >= Tmp:
    print('Yes')
else:
    print('No')
Buggy code:
N = int(input())
A = int(input())

if(n%500 <= A):
    print("Yes")
else:
    print ("No")

Fixed code:
N = int(input())
A = int(input())

if(N%500 <= A):
    print("Yes")
else:
    print ("No")
Buggy code:
n = int(input())
a = int(input())

z = int(n%500)

if a == z:
  print('Yes')
  
else:
  print('No')

Fixed code:
n = int(input())
a = int(input())
 
z = int(n%500)
 
if a >= z:
  print('Yes')
  
else:
  print('No')
Buggy code:
N=int(input())
A=int(input())

if ((N-A)%500==0)or(N<=A):
    print("Yes")
else:
    print("No")

Fixed code:
N = int(input())
A = int(input())
if (N % 500 == 0) or (N % 500 < A):
  print("Yes")
else:
  print("No")
Buggy code:
print('No')if int(input())%500>int(input())else print('No')

Fixed code:
print('No')if int(input())%500>int(input())else print('Yes')
Buggy code:
n, a = [int(input()) for _ in range(2)]
print('Yes' if n >= a%500 else 'No')

Fixed code:
n, a = [int(input()) for _ in range(2)]
print('Yes' if n%500 <= a else 'No')
Buggy code:
N = int(input())
A = int(input())
print("Yes" if A%500<=A else "No")

Fixed code:
N = int(input())
A = int(input())
print("Yes" if N%500<=A else "No")
Buggy code:
n = int(input())
a = int(input())

if a % 500 <= n:
  print('Yes')
else:
  print('No')

Fixed code:
n=int(input())
a=int(input())
n1=n%500
if n1<=a:
  print("Yes")
else:
  print("No")
Buggy code:
if int(input())%500<=int(input())%500:print('Yes')
else:print('No')

Fixed code:
if int(input())%500<=int(input()):print('Yes')
else:print('No')
Buggy code:
a=int(input())
b=int(input())
if a%500<b:
  print('Yes')
else('No')

Fixed code:
a=int(input())
b=int(input())
if a%500 <= b:
  print('Yes')
else: print('No')
Buggy code:
N = int(input())
A = int(input())
C = 0
C = N % 500
if C <= A:
   print(Yes)
else:
   print(No)

Fixed code:
N = int(input())
A = int(input())
C = 0
C = N % 500
if C <= A:
  print("Yes")
else:
  print("No")
Buggy code:
N = int(input());
A = int(input());
C = 0;
C = N % 500;
if C <= A:
  print(Yes);  
else:
  print(No);

Fixed code:
N = int(input());
A = int(input());
C = 0;
C = N % 500;
if C <= A:
  print("Yes");  
else:
  print("No");
Buggy code:
N = int(input())
A = int(input())
for a in range(A+1):
    for j in range(21):
        if a + 500 * j:
            print("Yes")
            exit()
print("No")

Fixed code:
N = int(input())
A = int(input())
for a in range(A+1):
    for j in range(21):
        if a + 500 * j == N: 
            print("Yes")
            exit()
print("No")
Buggy code:
N = int(input())
A = int(input())
if N%500 > A:
  print('Yes')
else:
  print('No')


Fixed code:
N = int(input())
A = int(input())
if N%500 > A:
  print('No')
else:
  print('Yes')
Buggy code:
N=int(input())
A=int(input())
if((N%500<=A):
  print("Yes")
else:
  print("No")
  

Fixed code:
N = int(input())
A = int(input())

m = N % 500
if m <= A:
    print('Yes')
else:
    print('No')
Buggy code:
N = int(input())
A = int(input())

if N % 500 == A:
    print('Yes')
else:
    print('No')

Fixed code:
N = int(input())
A = int(input())
 
if N % 500 <= A:
    print('Yes')
else:
    print('No')
Buggy code:
n = int(input())
a = int(input())
print('Yes' if n % 500 >= a else 'No')

Fixed code:
n = int(input())%500
a = int(input())
if n>a:
    print('No')
else:
    print('Yes')
Buggy code:
n=int(input())
a=int(input())
print('Yes' if n%500<==a else 'No')

Fixed code:
n = int(input())
a = int(input())

if n % 500 <= a:
    print ("Yes")
else:
    print("No")
Buggy code:
N = int(input())
A = int(input())
if N % 500 <= A
    print("Yes")
else:
    print("No")

Fixed code:
N = int(input())
A = int(input())

temp = N%500
if temp<= A:
    print("Yes")
else:
    print("No")
Buggy code:
N=int(input())
A=int(input())
if N<=A:
  print('Yes')
if N>A:
  if (N-A)%500==0:
    print('Yes')
  else:
    print('No')
    
    

Fixed code:
N = int(input())
A = int(input())

if (N % 500) - A <= 0:
    print("Yes")
else:
    print("No")
Buggy code:
N=int(input())
A=int(input())
b=N//500
c=N-500b
if A<=c:
  print('Yes')
else:
  print('No')
  

Fixed code:
N=int(input())
A=int(input())
b=N//500
c=N-500*b
if c<=A:
  print('Yes')
else:
  print('No')
Buggy code:
# -*- coding: utf-8 -*-

n = input()
a = input()

if n % 500 <= a:
    print("Yes")
else:
    print("No")


Fixed code:
# -*- coding: utf-8 -*-

n = int(input())
a = int(input())

if n % 500 <= a:
    print("Yes")
else:
    print("No")
Buggy code:
n = int(input())
a = int(input())
r = n-int(n/500)*500
if r <= 500:
  print("Yes")
else:
  print("No")

Fixed code:
n = int(input())
a = int(input())
r = n-int(n/500)*500
if r <= a:
  print("Yes")
else:
  print("No")
Buggy code:
N = int(input())
A = int(input())
r = N%500
if r > A:
  print('Yes')
else:
  print('No')

Fixed code:
N = int(input())
A = int(input())
r = N%500
if r > A:
  print('No')
else:
  print('Yes')
Buggy code:
N=int(input())
a=int(input())
if N%500=<a:
    print("Yes")
else:
    print("No")

Fixed code:
N=int(input())
a=int(input())
if N%500<=a:
    print("Yes")
else:
    print("No")
Buggy code:
N = input()
A = input()
if (N % 500) <= A:
  print("Yes")
else:
  print("No")

Fixed code:
N = int(input())
A = int(input())

if N % 500 <= A:
	print('Yes')
else:
	print('No')
Buggy code:
n = int(input())
a = int(input())

if(a <= n % 500):
  print("Yes")
else:
  print("No")


Fixed code:
n=int(input())
a=int(input())
print('Yes' if n%500 <=a else 'No')
Buggy code:
n1 = int(input())
n2 = int(input())
 
if n1%500<n2:
  print(Yes)
else:
  print(No)

Fixed code:
n1 = int(input())
n2 = int(input())
 
if n1%500<=n2:
  print("Yes")
else:
  print("No")
Buggy code:
N = int(input())
A = int(input())

N = N % 500
if N =< A:
  print("Yes")
else:
  print("No")

Fixed code:
N = int(input())
A = int(input())

print('Yes' if N % 500 <= A else 'No')
Buggy code:
n=int(input())
a=int(input())

if a%500<=n:
  print('Yes')
else:
  print('No')

Fixed code:
n=int(input())
a=int(input())
if(n%500 <=a):
  print("Yes")
else:
  print("No")
Buggy code:
n = int(input())
a = int(input())
if (n-a)%500==0:
  print("Yes")
else:
  print("No")

Fixed code:
n = int(input())
a = int(input())
if (n%500)-a<=0: 
  print("Yes")
else:
  print("No")
Buggy code:
N = int(input())
A = int(input())
if(N % 500 =< A):
    print('Yes')
else:
    print('No')

Fixed code:
N = int(input())
A = int(input())

mod = N % 500

if mod <= A:
    print('Yes')
else:
    print('No')
Buggy code:
N=int(input())
A=int(input())

if N%500 == A:
    print('Yes')
else:
    print('No')


Fixed code:
N=int(input())
A=int(input())

if N%500 <= A:
    print('Yes')
else:
    print('No')
Buggy code:
N = int(input())
A = int(input())
print('Yes') if N%500==A%500 else print('No')

Fixed code:
N = int(input())
A = int(input())
print('Yes') if A>=N%500 else print('No')
Buggy code:
N = input()
A = input()
n = int(N)
a = int(A)


x = n % 500

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


Fixed code:
N = input()
A = input()
n = int(N)
a = int(A)


x = n % 500

if x <= a:
	print("Yes")
else:
	print("No")
Buggy code:
def calc():

    amari = N % 500

    if amari >= A:
        return"Yes"

    else:
        return"No"

N = int(input())
A = int(input())

print(calc())

Fixed code:
def calc():

    amari = N % 500

    if amari <= A:
        return"Yes"

    else:
        return"No"

N = int(input())
A = int(input())

print(calc())
Buggy code:
N = int(input("N--->"))
A = int(input("A--->"))

b = N%500

if A > b:
    print("Yes")
else:
    print("No")

Fixed code:
N = int(input())
A = int(input())

b = N%500

if A >= b:
    print("Yes")
else:
    print("No")
Buggy code:
# -*- coding:utf-8 -*-
n = int(input())
a = int(input())

if (a % 500) < n:
  print('Yes')
else:
  print('No')

Fixed code:
# -*- coding:utf-8 -*-
n = int(input())
a = int(input())

if (n % 500) <= a:
	print('Yes')
else:
    print('No')
Buggy code:
N = int(input())
A = int(input())

N = N - (N%500)*500
if N > A:
  r = 'No'
else:
  r = 'Yes'

print(r)

Fixed code:
N = int(input())
A = int(input())
 
N = N - (N//500)*500
if N > A:
  r = 'No'
else:
  r = 'Yes'
 
print(r)
Buggy code:
N = int(input())
A = int(input())
k = N // 500 
if N >= A:
    print("Yes")
elif (N - A)/500 <= k:
    print("Yes")
else:
    print("No")

Fixed code:
N = int(input())
A = int(input())
k = N // 500 
if N <= A:
    print("Yes")
elif (N - A)/500 <= k:
    print("Yes")
else:
    print("No")
Buggy code:
n = int(input())
a = int(input())
coin = n%500
if a >= coin:
  print("Yes")
else:
  priont("No")

Fixed code:
n = int(input())
a = int(input())
coin = n%500
if a >= coin:
  print("Yes")
else:
  print("No")
Buggy code:
a = input()
b = input()

if a % 500 <= b:
  print("Yes")
else:
  print("No")

Fixed code:
a = int(input())
b = int(input())
if a % 500 <= b:
  print("Yes")
else:
  print("No")
Buggy code:
a = input()
n = input()

if n % 500 <= a:
  print "Yes"
else:
  print "No"
  

Fixed code:
n = int(input())
a = int(input())

if n % 500 <= a:
    print("Yes")
else:
    print("No")
Buggy code:
N=int(input())
A=int(input())
print("Yes" if A%500 <= A else "No")

Fixed code:
N=int(input())
A=int(input())
print("Yes" if N%500 <= A else "No")
Buggy code:
n, a = [int(input()) for _ in range(2)]

rest = n - n//500
if rest>a:
    print("No")
else:
    print("Yes")


Fixed code:
n, a = [int(input()) for _ in range(2)]

rest = n - (n//500) * 500
if rest>a:
    print("No")
else:
    print("Yes")
Buggy code:
a = input()
b = input()
if a % 500 <= b:
  print("Yes")
else:
  print("No")

Fixed code:
a = int(input())
b = int(input())
if a%500 <= b :
  print('Yes')
else:
  print('No')
Buggy code:
a = input()
b = input()
temp = a % 500
if temp <= b:
  print("Yes")
else:
  print("No")

Fixed code:
a = int(input())
b = int(input())
temp = a % 500
if temp <= b:
  print("Yes")
else:
  print("No")
Buggy code:
N = int(input())
A = int(input())

remain = N % 500

if remain <= N:
  print('Yes')
else:
  print('No')

Fixed code:
N = int(input())
A = int(input())
 
if N % 500 <= A:
  print("Yes")
else:
  print("No")
Buggy code:
N = int(input())
A = int(input())
mod = N % 500
if mod < A || mod = A:
  print("Yes")
else:
  print("No")

Fixed code:
N = int(input())
A = int(input())
mod = N % 500
if mod <= A:
  print("Yes")
else:
  print("No")
Buggy code:

a = int(input())
b = int(input())

print( 'Yes' if a%500 >= b else 'No')

Fixed code:
a = int(input())
b = int(input())
if b >= (a % 500):
    print("Yes")
else:
    print("No")
Buggy code:
x = int(input()) % 500
a = int(input())

print("Yes" if x == a else "No")


Fixed code:
x = int(input()) % 500
a = int(input())

print("Yes" if x <= a  else "No")
Buggy code:
a = int(input())
c = int(input())
b = 0
 
b = c % 500
if c >= b:
    print('Yes')
else:
    print("No")

Fixed code:
a = int(input())
c = int(input())
b = 0
 
b = a% 500
if c >= b:
    print('Yes')
else:
    print("No")
Buggy code:
n = input()
a = input()

r = n % 500
if r > a:
  print('No')
else:
  print('Yes')

Fixed code:
n = int(input())
a = int(input())

r = n % 500
if r > a:
  print('No')
else:
  print('Yes')
Buggy code:
n = int(input())
a = int(input())
if a%500 <= n:
  print("Yes")
else:
  print("No")

Fixed code:
n=int(input())
a=int(input())

if n % 500<=a:
    print('Yes')
else:
    print('No')
Buggy code:
N,A =  map(int,input().split())

if A >= N % 500:
    print('Yes') 
else:
    print('No')

Fixed code:
#N,A =  map(int,input().split())
N = int(input())
A = int(input())
if A >= N % 500:
    print('Yes') 
else:
    print('No')
Buggy code:
N = int(input())
A = int(input())

if N%500=<A:
  print('Yes')
else:
  print('No')


Fixed code:
N = int(input())
A = int(input())

if N%500<=A:
  print('Yes')
else:
  print('No')
Buggy code:
N = int(input())
A = int(input())
 
if A % 500 <= N:
  print('Yes')
else:
  print('No')

Fixed code:
N = int(input())

A = int(input())

if N % 500 <= A:
    print("Yes")
else:
    print("No")
Buggy code:
n=int(input())
a=int(input())
n%500=m
if m<=a:
    print("Yes")
else :
    print("No")


Fixed code:
n=int(input())
a=int(input())
if  n%500<=a:
  print("Yes")
else:
  print("No")
Buggy code:
n=int(input())
a=int(input())
print('Yes' if n%500 =< a else 'No')

Fixed code:
n = int(input())
a = int(input())
r = "Yes" if n % 500 <= a else "No"
print(r)
Buggy code:
n=input()
a=input()
if n<500 and a>=n:
  print("Yes")
elif n>=500 and n%500<a:
  print("Yes")
else:
  print("No")

Fixed code:
n=int(input())
a=int(input())

if n<500:
    if n<=a:
        print("Yes")
    else:
        print("No")
elif n>500 and (n%500)<=a:
    print("Yes")
else :
    print("No")
Buggy code:
n=int(input())
a=int(input())
print(['Yes','No'][n%500>a]

Fixed code:
n=int(input())
a=int(input())
print(['Yes','No'][n%500>a])
Buggy code:
n-int(input())
a=int(input())
k = n%500
if k<=a:print('Yes')
else:print('No')

Fixed code:
n=int(input())
a=int(input())
k = n%500
if k<=a:print('Yes')
else:print('No')
Buggy code:
n,a = [input() for i in range(2)]

x=N%500 

if x<=a:
  print('Yes')
else:
  print('No')

Fixed code:
n,a = [int(input()) for i in range(2)]

x=n%500 

if x<=a:
  print('Yes')
else:
  print('No')
Buggy code:
N = int(input())
A = int(input())

N %= 500

if N <= a:
  print('Yes')
else:
  print('No')

Fixed code:
N = int(input())
A = int(input())
if N % 500 <= A:
  print('Yes')
else:
  print('No')
Buggy code:
N – int(input())
A – int(input())
ans = "No"
if N % 500 < A:
  ans = "Yes"
print(ans)

Fixed code:
N = int(input())
A = int(input())
ans = "No"
if N % 500 <= A:
  ans = "Yes"
print(ans)
Buggy code:
n = int(input())
a = int(input())
n = n - 500*(n//500)
if n =< a:
    print('Yes')
else:
    print('No')

Fixed code:
n = int(input())
a = int(input())
n = n - 500*(n//500)
if n <= a:
    print('Yes')
else:
    print('No')
Buggy code:
N=int(input())
A=int(input())
count=0
for i in range(0, A+1):
    if (N-i)%500 == 0:
        print('Yes')
        count=1
        break
print("Yes" if count==1 else "No")

Fixed code:
N=int(input())
A=int(input())
count=0
for i in range(0, A+1):
    if (N-i)%500 == 0:
        count=1
        break
print("Yes" if count==1 else "No")
Buggy code:
N=int(input())
A=int(input())

if (N-A)%500==0:
    print("Yes")
else:
    print ("No")

Fixed code:

N = int(input())
A = int(input())
if (N%500)-A <= 0:
    print("Yes")
else:
    print("No")
Buggy code:
N = int(input())
A = int(input())
 
remain = N%500
if remain == A:
  print("Yes")
else:
  print("No")

Fixed code:
N = int(input())
A = int(input())
 
remain = N%500
if remain <= A:
  print("Yes")
else:
  print("No")
Buggy code:
N=int(input())
A=int(input())
import sys
for i in range (1,1000):
    for j in range(A+1):
        if N==500*i+j:
            print ('Yes')
            sys.exit()

print ('No')

Fixed code:
N=int(input())
A=int(input())
import sys
for i in range (0,1000):
    for j in range(A+1):
        if N==500*i+j:
            print ('Yes')
            sys.exit()

print ('No')
Buggy code:
import numpy as np

N = input(); A= input()
A,N = int(A), int(N)

if N % 500 <= A: print(N % 500); print('Yes')
else: print('No')


Fixed code:
import numpy as np

N = input(); A= input()
A,N = int(A), int(N)

if N % 500 <= A:
    print('Yes')
else: print('No')
Buggy code:
n=int(input())
a=int(input())
n-=(n%500)
if (n<=a) :
    print("Yes")
else :
    print("No")

Fixed code:
n=int(input())
a=int(input())
n=(n%500)
if (n<=a) :
    print("Yes")
else :
    print("No")
Buggy code:
a=int(input())
b=int(input())
if b%500<=a:
  print("Yes")
else:
  print("No")

Fixed code:
a=int(input())
b=int(input())
if a%500<=b:
  print("Yes")
else:
  print("No")
Buggy code:
N, A = [int(input()) for _ in range(2)]

if N % 500 == A:
  print('Yes')
else:
  print('No')

Fixed code:
N, A = [int(input()) for _ in range(2)]

if N % 500 <= A:
  print('Yes')
else:
  print('No')
Buggy code:
n = int(input())
a = int(input())
print('Yes' if (-n%500)<=a else 'No')

Fixed code:
n = int(input())
a = int(input())
print('Yes' if (n%500)<=a else 'No')
Buggy code:
N = input()
A = input()

if(N % 500 <= A):
  print("Yes")
else:
  print("No")

Fixed code:
N = int(input())
A = int(input())
 
if(N % 500 <= A):
  print("Yes")
else:
  print("No")
Buggy code:
N = int(input())
A = int(input())

B = N % 500

if B > A:
  print("No')
        
else:
        print("Yes")
        
        

Fixed code:
N = int(input())
A = int(input())
if A >= N % 500:
    print("Yes")
else:
    print("No")
Buggy code:
n = int(input())
a = int(input())

c = n // 500

one = n - c

if one <= a:
    print('Yes')
else:
    print('No')

Fixed code:
n = int(input())
a = int(input())

c = n // 500

one = n - c*500

if one <= a:
    print('Yes')
else:
    print('No')
Buggy code:
# -*- coding: utf-8 -*-
n = int(input())
a = int(input())

if n % 500 < a:
    print("Yes")
else:
    print("no")


Fixed code:
# -*- coding: utf-8 -*-
n = int(input())
a = int(input())

if n % 500 <= a:
    print("Yes")
else:
    print("No")
Buggy code:
N, A = input(), input()

if N % 500 < A:
  print("Yes")
else:
  print("No")

Fixed code:
N, A = int(input()), int(input())

if N % 500 <= A:
    print("Yes")
else:
    print("No")
Buggy code:
N, A = int(input()), int(input())
print(N, A)

while N >= 500:
    N = N - 500

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


Fixed code:
N, A = int(input()), int(input())

while N >= 500:
    N = N - 500

if A >= N:
    print("Yes")
else:
    print("No")
Buggy code:
import math

a = []
for i in range(2):
    a.append(input)
tmp = math.floor(a[0]/500)
tmp1 = a[0] - tmp*500
if a[1] >= tmp1:
    print('Yes')
else:
    print('No')

Fixed code:
import math
 
a = []
for i in range(2):
    a.append(int(input()))
tmp = math.floor(a[0]/500)
tmp1 = a[0] - tmp*500
if a[1] >= tmp1:
    print('Yes')
else:
    print('No')
Buggy code:
N=int(input());A=int(input())
if N%500>18:
  print('No')
else:
  print('Yes')

Fixed code:
N=int(input());A=int(input())
if N%500>A:
  print('No')
else:
  print('Yes')
Buggy code:
N = int(input())
A = int(input())
if N%500 <= A%500: print('Yes')
else: print('No')

Fixed code:
N = int(input())
A = int(input())
if N%500 <= A: print('Yes')
else: print('No')
Buggy code:
N = int(input())
A = int(input())
print("No" if ((N % 500)>=N else "Yes")

Fixed code:
N = int(input())
A = int(input())

if (N%500) > A :
    print('No')
else :
    print('Yes')
Buggy code:
A = int(input())
N = int(input())

if N % 500 <= A:
  print('Yes')
else:
  print('No')

Fixed code:
N = int(input())
A = int(input())

if N % 500 <= A:
  print('Yes')
else:
  print('No')
Buggy code:
N=input()
A=input()
if N%500>=A:
  print('No')
else:
  print('Yes')

Fixed code:
N=int(input())
A=int(input())
if A>=N%500:
    print("Yes")
else: print("No")
Buggy code:
N = int(input())
A = int(input())

if (A <= N%500) and (N%500 <= A):
    print("Yes")
else:
    print("No")

Fixed code:
N = int(input())
A = int(input())
if N % 500 <= A:
  print('Yes')
else:
  print('No')
Buggy code:
n = int(input)
a = int(input)
print("Yes") if n % 500 < a else print("No")

Fixed code:
n = int(input())
a = int(input())
print("Yes") if n % 500 <= a else print("No")
Buggy code:
n = int(input())
a = int(input())
if n % 500 >= a:
  print('Yes')
else:
  print('No')

Fixed code:
n = int(input())
a = int(input())
if a >= n % 500:
  print('Yes')
else:
  print('No')
Buggy code:
n = int(input())
a = int(input())
if n % 500 =< a:
  print('Yes')
else:
  print('No')

Fixed code:
n = int(input())
a = int(input())

balance = n % 500
if balance <= a:
    print('Yes')
else:
    print('No')
Buggy code:
a=int(input())
n=int(input())

amari=int(n%500)

if amari<=a:
    print('Yes')

else:
    print('No')

Fixed code:
n=int(input())
a=int(input())

amari=int(n%500)

if amari<=a:
    print('Yes')

else:
    print('No')
Buggy code:
N = int(input())
A = int(input())

A %= 500
if N<A:
  print("No")
else:
  print("Yes")

Fixed code:
N = int(input())
A = int(input())

N %= 500

if A<N:
  print("No")
else:
  print("Yes")
Buggy code:
N = int(input())
A = int(input())

a = 0
for i in range(20):
  if N > 500*i:
    a + 500
  else:
    continue
    
b = N - a

if b <= A:
  print("Yes")
else:
  print("No")

Fixed code:
N = int(input())
A = int(input())

a = 0
for i in range(20):
  if N >= 500*(i+1):
    a =  500*(i+1)
  else:
    continue
    
b = N - a

if b <= A:
  print("Yes")
else:
  print("No")
Buggy code:
if (int(input()) % 500 <= int(input()) % 500):
	print('Yes')
else:
	print('No')

Fixed code:
if (int(input()) % 500 <= int(input())):
	print('Yes')
else:
	print('No')
Buggy code:
n=int(input())
a=int(input())
m=n%500-a
if a<0:
    print("No")
else:
    print("Yes")

Fixed code:
n=int(input())
a=int(input())
m=n%500-a
if m<=0:
    print("Yes")
else:
    print("No")
Buggy code:
n,a = map(int,open(0).read())
print("Yes" if n%500 <= a else "No")

Fixed code:
n,a = map(int,open(0).read().split())
print("Yes" if n%500 <= a else "No")