qyliang/CodeNanoFix huggingface dataset:
Buggy code:
#-*- coding: utf-8
#  -*-
"""
oj dl https://atcoder.jp/contests/abc116/tasks/abc116_d -d test-d
oj test -d test-d -c "python abc116d.py"
oj test -d test-d -c "python abc116d.py" test-d/sample-3.in
"""
from collections import defaultdict
import sys
import math
from datetime import datetime

def sol(a, b):
    return a == b
    #if a + b + c <= 21: return 'win'
    #else: return 'bust'



do_submit = True
#do_submit = False

def input_parse(input_str):
    lines = [x.strip() for x in input_str.split("\n") if x.strip()]
    parsed_lines = [list(map(str, line.split())) for line in lines]
    print(parsed_lines)
    n = int(parsed_lines[0][0])
    k = int(parsed_lines[0][1])
    S = parsed_lines[1][0]
    return n, k, S


if not do_submit:
    a, b, c = input_parse("""
    3 1
    ABC
    """)
    print(sol(a, b, c))

    a, b, c = input_parse("""
    4 3
    CABA
    """)
    print(sol(a, b, c))

else:
    a, b = list(map(int, input().split()))
    # S = input().split()
    # a = int(input())
    # b = int(input())
    # T = input()
    print(sol(a, b))
    # S = input().strip()
    # print(sol(S))



Fixed code:
#-*- coding: utf-8
#  -*-
"""
oj dl https://atcoder.jp/contests/abc116/tasks/abc116_d -d test-d
oj test -d test-d -c "python abc116d.py"
oj test -d test-d -c "python abc116d.py" test-d/sample-3.in
"""
from collections import defaultdict
import sys
import math
from datetime import datetime

def sol(a, b):
    return "Yes" if a == b else "No"
    #if a + b + c <= 21: return 'win'
    #else: return 'bust'



do_submit = True
#do_submit = False

def input_parse(input_str):
    lines = [x.strip() for x in input_str.split("\n") if x.strip()]
    parsed_lines = [list(map(str, line.split())) for line in lines]
    print(parsed_lines)
    n = int(parsed_lines[0][0])
    k = int(parsed_lines[0][1])
    S = parsed_lines[1][0]
    return n, k, S


if not do_submit:
    a, b, c = input_parse("""
    3 1
    ABC
    """)
    print(sol(a, b, c))

    a, b, c = input_parse("""
    4 3
    CABA
    """)
    print(sol(a, b, c))

else:
    a, b = list(map(int, input().split()))
    # S = input().split()
    # a = int(input())
    # b = int(input())
    # T = input()
    print(sol(a, b))
    # S = input().strip()
    # print(sol(S))
Buggy code:
n, m = map(int, input().split)
if n==m:
  print('Yes')
else:
  print('No')

Fixed code:
n, m = map(int, input().split())
if(n == m):
  print("Yes")
else:
  print("No")
Buggy code:
n,m = map(int, input().split())
if n==m:
    print "Yes"
else:
    print "No"

Fixed code:
n, m = map(int, input().split())
if n == m:
	print('Yes')
else:
	print('No')
Buggy code:
test = input().split(" ")
if int(test[0])== int(test[1]):
  print("Yes")
else
 print("No")

Fixed code:
test = input().split(" ")
if int(test[0])== int(test[1]):
	print("Yes")
else:
	print("No")
Buggy code:
N,M = map(int,input().split())
if N == M:
  print('Yes')
else:
  pritn('No')

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

if N == M:
    print("Yes")
else:
    print("No")
Buggy code:
n,m = map(int,input().split)
print("Yes" if m==n else "No")

Fixed code:
n,m = map(int,input().split())
if n == m:
  print("Yes")
else:
  print("No")
Buggy code:
a,b=map(int,input().split())
print("Yes" a=b else "No" )

Fixed code:
a,b=map(int,input().split())
print('Yes') if a==b else print('No')
Buggy code:
arr=list(map(int,input().split())
n=arr[0]
m=arr[1]
if n==m:
  print("Yes")
else:
  print("No")


Fixed code:
arr=list(map(int,input().split()))
n=arr[0]
m=arr[1]
if n==m:
  print("Yes")
else:
  print("No")
Buggy code:
a,b=map(int,input().split())
if a=b:
  print("Yes")
else:
  print("No")

Fixed code:
a, b = map(int, input().split())
 
if a == b:
  print("Yes")
else:
  print("No")
Buggy code:
def main():
    from sys import stdin, setrecursionlimit
    #setrecursionlimit(10**9)
    #n = int(stdin.readline()[:-1])   
    r = stdin.readline()[:-1]
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]
    #n = int(r)
    #a = r.split()
    #a,b,c = r.split()
    a = list(map(int, r.split()))
    #a,b,c,d = map(int, r.split())
    #a = [int(s[i]) for i in range(1, n+1)]
    #a = [list(map(int, r.split())) for i in range(1,n+1)]
    #res = 0

    a.sort()
    if a[0] <= a[1]:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()


Fixed code:
def main():
    from sys import stdin, setrecursionlimit
    #setrecursionlimit(10**9)
    #n = int(stdin.readline()[:-1])   
    r = stdin.readline()[:-1]
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]
    #n = int(r)
    #a = r.split()
    #a,b,c = r.split()
    a = list(map(int, r.split()))
    #a,b,c,d = map(int, r.split())
    #a = [int(s[i]) for i in range(1, n+1)]
    #a = [list(map(int, r.split())) for i in range(1,n+1)]
    #res = 0

    if a[0] == a[1]:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()
Buggy code:
import math,sys
from collections import Counter, defaultdict, deque
from sys import stdin, stdout
input = stdin.readline
lili=lambda:list(map(int,sys.stdin.readlines()))
li = lambda:list(map(int,input().split()))
#for deque append(),pop(),appendleft(),popleft(),count()
I=lambda:int(input())
S=lambda:input().strip()
mod = 1000000007

a,b=li()
if(a==b):
    print("Yes")
else:
    print("NO")


Fixed code:
import math,sys
from collections import Counter, defaultdict, deque
from sys import stdin, stdout
input = stdin.readline
lili=lambda:list(map(int,sys.stdin.readlines()))
li = lambda:list(map(int,input().split()))
#for deque append(),pop(),appendleft(),popleft(),count()
I=lambda:int(input())
S=lambda:input().strip()
mod = 1000000007

a,b=li()
if(a==b):
    print("Yes")
else:
    print("No")
Buggy code:
 n, m = map(int, input().split())
    if n == m:
        print('Yes')
    else:
        print('No')

Fixed code:
n, m = map(int,input().split())
if n==m:
    print('Yes')
else:
    print('No')
Buggy code:
n, m = map(input().split())

print('Yes' if n == m else 'No')

Fixed code:
n, m = map(int, input().split())

print('Yes' if n == m else 'No')
Buggy code:
n, m = list(int, input().split())
if n == m:
  print("Yes")
else:
  print("No")

Fixed code:

n, m = list(map(int, input().split()))

if n == m:
    print('Yes')
else:
    print('No')
Buggy code:
n, m = map(int, input().split())
if n = m:
  print('Yes')
else:
  print('No')

Fixed code:
n,m=map(int,input().split())



print('Yes' if n==m else 'No')
Buggy code:
N,M = map(int,input().split())
if N == M:
    print("Yes")
else:
    print(No)

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

if N == M:
    print('Yes')
else:
    print('No')
Buggy code:
N = list(map(int, input().split()))
print(N)
i = N[1] - N[0]
if i == 0 :
         print("Yes")
else:
         print("No")

Fixed code:
N = list(map(int, input().split()))
i = N[1] - N[0]
if i == 0 :
         print("Yes")
else:
         print("No")
Buggy code:
a, b = map(input().split())
if a == b:
  print("Yes")
else:
  print("No")

Fixed code:
a, b = map(int,input().split())
if a == b:
  print("Yes")
else:
  print("No")
Buggy code:
n,m = map(int,input().split())
print(n,m)
if n == m :
    print("Yes")
else :
    print("No")

Fixed code:
n,m=map(int,input().split())


print("Yes" if n==m else "No")
Buggy code:
N, M = input().split()
if N == N:
  print('Yes')
else:
  print('No')

Fixed code:
N, M = input().split()

if N == M:
  print('Yes')
else:
  print('No')
Buggy code:
  N,M=map(int,input().split())
  if N==M:
    print("Yes")
  else:
    print("No")


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

if(N == M):
  print('Yes')
else:
  print('No')
Buggy code:
n,m = int(input().split())

if m == n:
  print('Yes')
else:
  print('No')

Fixed code:
n,m= map(int, input().split())
if n==m:
    print('Yes')
else:
    print('No')
Buggy code:
N, M = map(int, input().split())
if N == M:
  print(Yes)
elif N != M:
  print(No)

Fixed code:
N, M = map(int, input().split())
if N == M:
  print("Yes")
elif N != M:
  print("No")
Buggy code:
N, M = map(int, input.split())
print('Yes' if N == M else 'No)

Fixed code:
N,M = map(int,input().split())
ans = "Yes" if N==M else "No"
print(ans)
Buggy code:
n,m = (int(x), for x in input().split())
if n==m:
	print("Yes")
else:
	print("no")

Fixed code:
n,m = (int(x) for x in input().split())
if n==m:
	print("Yes")
else:
	print("No")
Buggy code:
a, b = input().split("")
if a == b:
  print("Yes")
else:
  print("No")

Fixed code:
a, b = input().split()
if a == b:
  print("Yes")
else:
  print("No")
Buggy code:
N,M=map(int,input().split())

if N = M:
    print('Yes')
else:
    print('No')

Fixed code:
N,M = map(int, input().split())
if N == M:
    print("Yes")
else:
    print("No")
Buggy code:
a, b = map(int, input().split())
print('Yes' if  is b else 'No')


Fixed code:
a, b = map(int, input().split())
print('Yes' if a is b else 'No')
Buggy code:
n, m = map(int,input(),split())

if n == m:
    print("Yes")
else:
    print("No")

Fixed code:
n,m = map(int,input().split())
if (n == m):
  print("Yes")
else:
  print("No")
Buggy code:
N,M=map(int,input().split())
if N==M:
  ans="Yes"
else:
  ans="No"
print("ans")

Fixed code:
N,M=map(int,input().split())
if N==M:
  ans="Yes"
else:
  ans="No"
print(ans)
Buggy code:
n , m = map(int , input() . split())
if n == n :
    print('Yes')
else :
    print('No')

Fixed code:
n, m = map(int, input().split(' '))
if n == m:
    print('Yes')
else:
    print('No')
Buggy code:
n,m=map(int,input().split())
print("Yes" if n=m else "No")


Fixed code:
m,n=map(int,input().split())
if m==n :
  print("Yes")
else :
  print("No")
Buggy code:
N, M = lit(map(int, input().split()))
print('Yes' if N == M else 'No')

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

print('Yes' if N==M else 'No')
Buggy code:
a,b=map(int(), input().split())
if a==b:
  print("Yes")
else:
  print("No")
  

Fixed code:
a, b=map(int, input().split())
if a==b:
  print("Yes")
else:
  print("No")
Buggy code:
N,M = map(int,input().split())
if N = M:
		print('Yes')
else:
		print('No')

Fixed code:
N, M = map(int,input().split())
if N == M : print("Yes")
else: print("No")
Buggy code:
n,m=map(int,input().split())
print(Yes) if n==m else print(No)

Fixed code:
n,m=map(int,input().split())
print("Yes") if n==m else print("No")
Buggy code:
#coding: utf-8

s = input().split()
if s[0]==s[1]:
  print('yes')
else:
  print('No')

Fixed code:
#coding: utf-8
 
s = input().split()
if s[0]==s[1]:
  print('Yes')
else:
  print('No')
Buggy code:
a = list(map(int,input().split()))
if(a[0] == a[1])
	print('Yes')
else:
  print('No')

Fixed code:
nm = list(map(int, input().split()))
if nm[0]==nm[1]:
  print('Yes')
else:
  print('No')
Buggy code:
x,y=map(int(),input().split())
if(x==y):
  print("Yes")
else:
  print("No")

Fixed code:
x,y=map(int,input().split())
if(x==y):
  print("Yes")
else:
  print("No")
Buggy code:
N, M=map(int, input().split())

if N==M:
    print("Yes")

print("No")

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

if N==M:
    print("Yes")
else:
    print("No")
Buggy code:

a,b = map(int,input().split())

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

Fixed code:
a,b = map(int,input().split())
if a==b:print("Yes")
else:print("No")
Buggy code:
x,y = map(int,input().split())
if x-y == 0:
  print("Yes")
 else:
  print("No")
    

Fixed code:
x,y = map(int,input().split())
if x-y == 0:
  print("Yes")
else:
  print("No")
Buggy code:
a,b=input().split()
if s==b:
  print('Yes')
 else:
  print('No')

Fixed code:
a,b=input().split()
if a==b:
  print('Yes')
else:
  print('No')
Buggy code:
N,M=map(int,input().split())
if N=M:
    print("Yes")
else:
    print("No")

Fixed code:
N,M=map(int,input().split())
if N==M:
	print('Yes')
else:
	print('No')
Buggy code:
a,b=map(int,input().split())
if a==b
    print("Yes")
else:
    print("No")

Fixed code:
a,b=map(int,input().split())
if a==b:
    print("Yes")
else:
    print("No")
Buggy code:
N,M=(int(X) for x in input().split())

if N==M:
    print("Yes")
else:
    print("No")

Fixed code:
N,M=(int(x) for x in input().split())

if N==M:
  print("Yes")
else:
  print("No")
Buggy code:
print("Yes" if len(set(input.split()))==1 else "No")

Fixed code:
print('Yes' if len(set(input().split()))==1 else 'No')
Buggy code:
N,M = map(int, input().split())
if N==M:
    print("Yes")
else:
    pritn("No")

Fixed code:
N, M = map(int, input().split(' '))

if N == M:
  print('Yes')
else:
  print('No')
Buggy code:
N,M = int(input().split())
if N == M:
  print('Yes')
else:
  print('No')

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

if N == M:
    print('Yes')
else:
    print('No')
Buggy code:
n,m=map(int, input().split())
ans="No"
if n==m: "Yes"
print(ans)



Fixed code:
n,m=map(int, input().split())
ans="No"
if n==m: ans="Yes"
print(ans)
Buggy code:
s = input().rstrip().split(' ')
case = int(s[0])
ans = int(s[1])
if case == ans:
    print("Yes")
else:
    print("NO")


Fixed code:
s = input().rstrip().split(' ')
case = int(s[0])
ans = int(s[1])
if case == ans:
    print("Yes")
else:
    print("No")
Buggy code:
if len(set((list(input().split()))))==1:
    print("Yes")
else:("No")

Fixed code:
if len(set((list(input().split()))))==1:
    print("Yes")
else:
    print("No")
Buggy code:
M, N = map(int, input().split())
for M:
  if M = N:
    print("Yes")
  else:
    print("No")

Fixed code:


N,M = map(int,input().split())

if N == M:
    print('Yes')
else:
    print('No')
Buggy code:
a,b = map(lambda x: int(x),input().split())

if n == m :
    print('Yes')
else :
    print('No')


Fixed code:
n,m = map(lambda x: int(x),input().split())

if n == m :
    print('Yes')
else :
    print('No')
Buggy code:
N, M = map(int, input().split())
print('Yes' if N==M else 'No)

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

if N==M:
  print("Yes")
else:
  print("No")
Buggy code:
a,b=map(int,input().split())
if a<b:
    print('No')
else:
    print('Yes')

Fixed code:
a,b=map(int,input().split())
if a==b:
    print('Yes')
else:
    print('No')
Buggy code:
N,M=map(int, input().split())
if N==M:
  print 'Yes'
else:
  print 'No'


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

if N == M:
    print('Yes')
else:
    print('No')
Buggy code:
n, m = map(int, input(),split())
print('Yes' if n==m else 'No')

Fixed code:
n,m=map(int, input().split())
print('Yes' if n==m else 'No')
Buggy code:
N,M=map(int,input().split)
if N=M:
  print("Yes")
else:
  print("No")
 

Fixed code:
N,M=map(int,input().split())
if N==M:
  print("Yes")
else:
  print("No")
Buggy code:
a,b=map(int,input().split())

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

Fixed code:
a,b=map(int,input().split())
print('Yes' if a==b else 'No')
Buggy code:
a, b = input().split()
print("Yes" if (a==b) else "No)

Fixed code:
a, b = input().split()
print("Yes" if (a==b) else "No")
Buggy code:

def main():
    
    n,m = map(int, input().split())

    if n == m:
        print('yes')
    else:
        print('No')
    


if __name__ == '__main__':
    main()



Fixed code:

def main():
    
    n,m = map(int, input().split())

    if n == m:
        print('Yes')
    else:
        print('No')
    


if __name__ == '__main__':
    main()
Buggy code:
N,M=int(input().split())
if N==M:
  print("Yes")
else:
  print("No")

Fixed code:
N,M= input().split()

if N == M:
    print("Yes")
else:
    print("No")
Buggy code:
n,m=[int(x) for x in input().split()]
if(n==m):
  print("Yes")
 else:
  orint("No")

Fixed code:
n,m=[int(x) for x in input().split()]
if(n==m):
  print("Yes")
else:
  print("No")
Buggy code:
N,M=[int(s) for s in input().split()]
if N==M:
  print(Yes)
else:
  print(No)

Fixed code:
N,M=[int(s) for s in input().split()]
if N==M:
  print('Yes')
else:
  print('No')
Buggy code:
N,M=map(int,input().split())
if N=M:
    print('Yes')
else :
    print('No')
    

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

if(N == M):
    print("Yes")
else:
    print("No")
Buggy code:

input = list(map(int, input().split()))
N = input[0]
M = input[1]

if iN == M:
    print("Yes")
else:
    print("No")

Fixed code:

input = list(map(int, input().split()))
N = input[0]
M = input[1]

if N == M:
    print("Yes")
else:
    print("No")
Buggy code:
n,m=map(int,input().split())
if n=m:
  print('Yes')
else:
  print('No')

Fixed code:
n, m = map(int, input().split())

if n == m:
	print("Yes")
else:
	print("No")
Buggy code:
def main():
	n,m = map(int, input().split())
	if n==m:
		print('Yes')
	else:
		print('no')
main()

Fixed code:
def main():
	n,m = map(int, input().split())
	if n==m:
		print('Yes')
	else:
		print('No')
main()
Buggy code:
N,M=int(input().split())

if N==M:
  print("Yes")
else:
  print("No")

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

if N==M:
  print("Yes")
else:
  print("No")
Buggy code:
n,m =int(input()).split(' ')
if(n==m):
  print("Yes")
else:
  print("No")

Fixed code:
n,m=input().split()
if(n==m):
  print("Yes")
else:
  print("No")
Buggy code:
N,M==map(int,input().split)
if N==M:
  print('Yes')
else:
  print('No')

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

if N==M:
  ans = 'Yes'
else:
  ans = 'No'
  
print(ans)
Buggy code:
n.m=map(int,input().split())
if n==m:
  print('Yes')
  
else:
  print('No')

Fixed code:
n, m = map(int, input().split())
if n == m:
    print('Yes')
else: 
    print('No')
Buggy code:
x,y=map(int,input().split())
if x=y:
  print("Yes")
else:
  print("No")

Fixed code:
x,y=map(int,input().split())
if x==y:
    print("Yes")
else:
    print("No")
Buggy code:
    a,b = input().split(' ')
    if a == b:
      print('Yes')
    else:
      print('No')

Fixed code:
a,b = input().split(' ')
if a == b:
  print('Yes')
else:
  print('No')
Buggy code:
a,b = map(intinput().split())
#L = list(map(int,input().split()))
if a==b:
    print("Yes")
else:
    print("No")

Fixed code:
a,b = map(int,input().split())
#L = list(map(int,input().split()))
if a==b:
    print("Yes")
else:
    print("No")
Buggy code:
a,b=input().split()
c = str(a)**b
d = str(b)**a
if a<b:
  print(c)
else:
  print(d)

Fixed code:
a,b=input().split()
c = str(a)*int(b)
d = str(b)*int(a)
if a<b:
  print(c)
else:
  print(d)
Buggy code:
a, b = list(input().split())

ab = a * int(b)
ba = b * int(a)

if ab <= ab:
  print(ab)
else:
  print(ba)

Fixed code:
a, b = list(input().split())

ab = a * int(b)
ba = b * int(a)

if ab <= ba:
  print(ab)
else:
  print(ba)
Buggy code:
a, b = map(int, input().split())
if a < b: 
  print(b*a)
else:
  print(a*b)

Fixed code:
a, b = map(int, input().split())
if a < b: 
  print(b*str(a))
else:
  print(a*str(b))
Buggy code:
a, b = [i for i in input().split()]
print(max(int(a * int(b)), int(b * int(a)))

Fixed code:
a, b = [i for i in input().split()]
print(max(int(a * int(b)), int(b * int(a))))
Buggy code:
a,b = input().split()
aa=''.join([int(a) for _ in range(int(b))])
bb=''.join([int(b) for _ in range(int(a))])
print(max(int(aa),int(bb)))
           

Fixed code:
a,b = input().split()
aa=''.join([a for _ in range(int(b))])
bb=''.join([b for _ in range(int(a))])
print(max(int(aa),int(bb)))
Buggy code:
a, b = input().split()

ans = min(int(a * int(b)), int(b * int(a)))
print(ans)


Fixed code:
a, b = input().split()

ans = min(a * int(b), b * int(a))
print(ans)
Buggy code:
a,b=map(str,input().split())
if int(a)<=int(b):
  s=a
  for i in range(b-1):
    s+=a
  print (s)
else:
  s=b
  for j in range(a-1):
    s+=b
  print(s)
  


Fixed code:
a,b=map(str,input().split())
if int(a)<=int(b):
  s=a
  for i in range(int(b)-1):
    s+=a
  print (s)
else:
  s=b
  for j in range(int(a)-1):
    s+=b
  print(s)
Buggy code:
A,B = map(str,input().split())
AB = A * int(B)
BA = B * int(A)

if A >= B:
    print(AB)
elif A < B:
    print(BA)

Fixed code:
A,B = map(str,input().split())
AB = A * int(B)
BA = B * int(A)

if A <= B:
    print(AB)
elif A > B:
    print(BA)
Buggy code:
A,B = map(str,input().split())
AB = A * int(B)
BA = B * int(A)

if A >= B:
    print(AB)
else:
    print(BA)

Fixed code:
A,B = map(str,input().split())
AB = A * int(B)
BA = B * int(A)

if A < B:
    print(AB)
elif A > B:
    print(BA)
else:
    print(AB)
Buggy code:
a, b = list(map(int, input().split()))

    if a > b:
        print(str(b)*a)
    else:
        print(str(a)*b)

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

if a > b:
    print(str(b)*a)
else:
    print(str(a)*b)
Buggy code:
a,b = map(input().split())
ast = a * int(b)
bst = b * int(a)
print(ast if ast < bst else bst)

Fixed code:
a,b = input().split()
ast = a * int(b)
bst = b * int(a)
print(ast if ast < bst else bst)
Buggy code:
a, b = map(int, input().split())

ab = str(a * int(b))
ba = str(b * int(a))

ans = [ab, ba].sort

print(ans[0])

Fixed code:
a, b = map(int, input().split())
 
ab = str(a) * int(b)
ba = str(b) * int(a)
 
ans = sorted([ab, ba])
print(ans[0])
Buggy code:
a,b=map(str,input().split())
A=""
for i in range(int(a)):
    A=A+a
B=""
for i in range(int(b)):
    B=B+b
#print(A)
#
print(min(A,B))

Fixed code:
a,b=map(str,input().split())
A=""
for i in range(int(b)):
    A=A+a
B=""
for i in range(int(a)):
    B=B+b
#print(A)
#
print(min(A,B))
Buggy code:
a,b=map(int,input().split())
s.append(str(a)*b)
s.append(str(b)*a)
s.sort()
print(s[0])

Fixed code:
a,b=map(int,input().split())
s=[]
s.append(str(a)*b)
s.append(str(b)*a)
s.sort()
print(s[0])
Buggy code:
a, b = input().split()
print(max(int(a*int(b)), int(b*int(a))

Fixed code:
a, b = input().split()
print(max(int(a*int(b)), int(b*int(a))))
Buggy code:
a,b=map(int,input().split())
if a==b:
    n=str(a)
    for i in range(a-1):
        n+str(a)
    print(n)
else:
    if a>b:
        n=str(b)
        for i in range(a-1):
            n+str(b)
        print(n)
    else:
        n=str(a)
        for i in range(b-1):
            n+str(a)
        print(n)
        



Fixed code:
a,b=map(int,input().split())
if a==b:
    n=str(a)
    for i in range(a-1):
        n+=str(a)
    print(n)
else:
    if a>b:
        n=str(b)
        for i in range(a-1):
            n+=str(b)
        print(n)
    else:
        n=str(a)
        for i in range(b-1):
            n+=str(a)
        print(n)
Buggy code:
#AtCorder
def main():
	a,b=map(int, input().split())
	if a*10**b <=b*10**a:
		print(str(a)*b)
	else:
		print(str(b)*a)
main()

Fixed code:
#AtCorder
def main():
	a,b=map(int, input().split())
	if a <=b:
		print(str(a)*b)
	else:
		print(str(b)*a)
main()
Buggy code:
a,b=map(int,input().split())
if a>b:
    for i in range(b):
        print(a)
elif a==b:
    for i in range(b):
        print(a)
elif a<b:
    for i in range(a):
        print(b)


Fixed code:
a,b=map(int,input().split())
if a<b:
    for i in range(b):
        print(a,end="")
elif a==b:
    for i in range(b):
        print(a,end="")
elif a>b:
    for i in range(a):
        print(b,end="")
Buggy code:
a, b = map(int, input().split())


if a <= b:
    c = a
    for i in range(b-1):
        c = str(c) + str(a)
else:
    c = b
    for i in range(a-1):
        c = str(b) + str(b)
print(c)


Fixed code:
a, b = map(int, input().split())


if a <= b:
    c = a
    for i in range(b-1):
        c = str(c) + str(a)
else:
    c = b
    for i in range(a-1):
        c = str(c) + str(b)
print(c)
Buggy code:
a, b = input().split()
an, bn = int(a), int(b)

ab = a * bn
ba = b * an

if ab >= ba:
  print(ab)
else:
  print(ba)


Fixed code:
a, b = input().split()
an, bn = int(a), int(b)
 
ab = a * bn
ba = b * an
 
if ab >= ba:
  print(ba)
else:
  print(ab)
Buggy code:
a,b=map(str,input().split())
if a>=b:
  print(b*a)
elif b>=a:
  print(a*b)


Fixed code:
a,b=map(str,input().split())

if a>=b:
  print(b*int(a))
elif b>=a:
  print(a*int(b))
Buggy code:
a, b = map(int, input().split())
for i in range(min(a, b)):
    print(max(a, b), end='')


Fixed code:
a, b = map(int, input().split())
for i in range(max(a, b)):
    print(min(a, b), end='')
Buggy code:
a,b = map(int,input().split())
if a == b:
    print(str(a)*a)
if a < b:
    print(str(a)*b)
else:
    print(str(b)*a)

Fixed code:
a, b = map(int, input().split())
if a<b:
    print(str(a)*b)
else:
    print(str(b)*a)
Buggy code:
a,b = input().split()
a_int = int(a)
b_int = int(b)
ab = int(a*b_int)
ba = int(b*a_int)
if ab >= ba:
    print(ba)
elif ab <= ba:
    print(ab)

Fixed code:
a,b = input().split()
a_int = int(a)
b_int = int(b)
ab = a*b_int
ba = b*a_int
if ab >= ba:
    print(ba)
elif ab <= ba:
    print(ab)