ZhenlongDai/ACPR huggingface dataset:
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
t=int(input())
print(3-n-t)

Failing test case input:
3
001

Expected output:
2


Actual output:
-1


Fixed submission (verdict: Accepted):
n=int(input())
t=int(input())
print(6-n-t)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = int(input())

answers = {1:True, 2:True, 3:True}
answers.pop(A)
answers.pop(B)
str(list(answers.keys())[0])

Failing test case input:
3
001

Expected output:
2


Actual output:

Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())

answers = {1:True, 2:True, 3:True}
answers.pop(A)
answers.pop(B)
print(list(answers.keys())[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = {1,2,3}
A = {int(input())}
B = {int(input())}
C = S - A - B


Failing test case input:
3
001

Expected output:
2


Actual output:

Fixed submission (verdict: Accepted):
S = {1,2,3}
A = {int(input())}
B = {int(input())}
C = S - A - B
V = C.pop()
print(V)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())

if a == 1 and b == 2:
    print("3")
elif a == 1 and b == 3:
    print("2")
else:
    print("1")

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())

if (a != 3) and (b != 3):
    print("3")
elif (a != 2) and (b != 2):
    print("2")
else:
    print("1")

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
if (a==1 and b==2) or (a==2 and b==1):
    print(3)
elif (a==2 or b==3) or (a==3 or b==2):
    print(1)
else:
    print(2)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
if (a==1 and b==2) or (a==2 and b==1):
    print(3)
elif (a==2 and b==3) or (a==3 and b==2):
    print(1)
else:
    print(2)

Problem: p02829
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A = int(input())
B = int(input())

l = [1,2,3]
l.remove(A)
l.remove(B)

print(l)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())
 
l = [1,2,3]
l.remove(A)
l.remove(B)
 
print(l[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
Answer = [1, 2, 3]

A = int(input())
B = int(input())

Answer.remove(A)
Answer.remove(B)

print(Answer)



Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
Answer = [1, 2, 3]

A = int(input())
B = int(input())

Answer.remove(A)
Answer.remove(B)

print(Answer[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
b=input()
if a!=3 and b!=3:
  print(3)
elif a!=2 and b!=2:
  print(2)
else:
  print(1)

Failing test case input:
3
001

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
if a!=3 and b!=3:
  print(3)
elif a!=2 and b!=2:
  print(2)
else:
  print(1)
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())

print(6-a+b)

Failing test case input:
3
001

Expected output:
2


Actual output:
4


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
 
print(6-a-b)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l=[1,2,3]
a=int(input())
l.remove(a)
b=int(input())
l.remove(b)
print(l)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
l=[1,2,3]
a=int(input())
l.remove(a)
b=int(input())
l.remove(b)
print(l[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
if a == 2 and b == 3:
    print('2')
elif a == 1 and b == 2:
    print('3')
else:
    print('1')


Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
if a == 2 and b == 3 or b == 2 and a == 3:
    print('1')
elif a == 1 and b == 2 or b == 1 and a == 2:
    print('3')
else:
    print('2')

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
read=sys.stdin.buffer.read
A,B=map(int,read().split())
l=[1,2,3]
res = filter(lambda x:x!=A and x!=B, l)
print(res)

Failing test case input:
3
001

Expected output:
2


Actual output:
<filter object at 0x7f7fffe39270>


Fixed submission (verdict: Accepted):
import sys
read=sys.stdin.buffer.read
A,B=map(int,read().split())
l=[1,2,3]
res = filter(lambda x:x!=A and x!=B, l)
print(next(res))

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=int(input())
B=int(input())
s={1,2,3}
s.discard(A)
s.discard(B)
s.pop()

Failing test case input:
3
001

Expected output:
2


Actual output:

Fixed submission (verdict: Accepted):
A=int(input())
B=int(input())
s={1,2,3}
s.discard(A)
s.discard(B)
print(int(s.pop()))

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin

A = stdin.readline().rstrip()
B = stdin.readline().rstrip()

if A == 1:
    if B == 2:
        print(3)
        exit()
    else:
        print(2)
        exit()
elif A == 2:
    if B == 1:
        print(3)
        exit()
    else:
        print(1)
        exit()
else:
    if B == 1:
        print(2)
        exit()
    else:
        print(3)
        exit()


Failing test case input:
3
001

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
from sys import stdin

A = int(stdin.readline().rstrip())
B = int(stdin.readline().rstrip())

if A == 1:
    if B == 2:
        print(3)
        exit()
    else:
        print(2)
        exit()
elif A == 2:
    if B == 1:
        print(3)
        exit()
    else:
        print(1)
        exit()
else:
    if B == 1:
        print(2)
        exit()
    else:
        print(1)
        exit()
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
if a==1 or b==2:
  print(3)
elif a==2 or b==1:
  print(3)
elif a==3 or b==1:
  print(2)
elif a==3 or b==2:
  print(1)
elif a==1 or b==3:
  print(2)
elif a==2 or b==3:
  print(1)

Failing test case input:
3
001

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
if a==1 and b==2:
  print(3)
elif a==2 and b==1:
  print(3)
elif a==3 and b==1:
  print(2)
elif a==3 and b==2:
  print(1)
elif a==1 and b==3:
  print(2)
elif a==2 and b==3:
  print(1)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = (input())
B = (input())

for i in range(1, 4):
  if i == A:
    continue
  if i == B:
    continue
  print(i)
  exit()

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())

for i in range(1, 4):
  if i == A:
    continue
  if i == B:
    continue
  print(i)
  exit()

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
print(3^a^b)


Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
print(a^b)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = {1,2,3}
A = {int(input())}
B = {int(input())}
C = S - A - B
print(C)

Failing test case input:
3
001

Expected output:
2


Actual output:
{2}


Fixed submission (verdict: Accepted):
S = {1,2,3}
A = {int(input())}
B = {int(input())}
C = S - A - B
V = C.pop()
print(V)

Problem: p02829
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A = int(input())
B = int(input())

print(5-A-B)	

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())
 
print(6-A-B)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=list(map(int,input().split()))
list=[1,2,3]
result=set(list)-set(s)
print(result)

Failing test case input:
3
001

Expected output:
2


Actual output:
{1, 2}


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
s=[a,b]
li=[1,2,3]
result=list(set(li)-set(s))
print(result[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = int(input())
c = [1,2,3]
c.remove(A)
c.remove(B)
print(c)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())

c = [1, 2, 3]
c.remove(a)
c.remove(b)

print(c[0])
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = int(input())
y = int(input())

if (x==1)&(y==2):
    print('3')
elif (x==2)&(y==3):
    print('1')
elif x==3 & y==1:
    print('2')
elif x==1 & y==3:
    print('2')
elif x==2 & y==1:
    print('3')
else:print('1')

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
x = int(input())
y = int(input())

if (x==1)&(y==2):
    print('3')
elif (x==2)&(y==3):
    print('1')
elif (x==3) & (y==1):
    print('2')
elif (x==1) & (y==3):
    print('2')
elif (x==2) & (y==1):
    print('3')
elif (x==3) & (y==2):
    print('1')

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
row = sys.stdin.readline
def read_int(row):
    return int(row().rstrip())

A,B= [read_int(row) for i in range(2)]

print((set({1,2,3}) - set({1,2})).pop())

Failing test case input:
3
001

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
import sys
row = sys.stdin.readline
def read_int(row):
    return int(row().rstrip())

A,B= [read_int(row) for i in range(2)]

print((set({1,2,3}) - set({A,B})).pop())

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
for i in range(1, 4):
  if i != a or i != b:
    print(i)

Failing test case input:
3
001

Expected output:
2


Actual output:
1
2
3


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
for i in range(1, 4):
  if i != a and i != b:
    print(i)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ans = [1,2,3]
ans.remove(int(input()))
ans.remove(int(input()))

print(ans)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
ans = [1,2,3]
a = int(input())
b = int(input())
ans.remove(a)
ans.remove(b)

print(ans[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
l=[1,2,3]
l.remove(a)
l.remove(b)
print(l)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
l=[1,2,3]
a=int(input())
l.remove(a)
b=int(input())
l.remove(b)
print(l[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(6-int(input())+int(input()))

Failing test case input:
3
001

Expected output:
2


Actual output:
4


Fixed submission (verdict: Accepted):
print(6-(int(input())+int(input())))

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=[1,2,3]
c.remove(a)
c.remove(b)
print(c)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
c=[1,2,3]
c.remove(a)
c.remove(b)
print(c[0])
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input1 = int(input())
input2 = int(input())

if input1 == 1 and input2 == 2:
  print(3)
elif input1 == 1 and input2 == 3:
  print(2)
else:
  print(1)


Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
input1 = int(input())
input2 = int(input())
 
if input1 == 1:
  print(3) if input2 == 2 else print(2)
elif input1 == 2:
  print(3) if input2 == 1 else print(1)
else:
  print(1) if input2 == 2 else print(2)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())

ans = {1, 2, 3}
not_ans = {a, b}

z = ans.difference(not_ans)

print(z)

Failing test case input:
3
001

Expected output:
2


Actual output:
{2}


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())

ans = {1, 2, 3}
not_ans = {a, b}

for data in ans.difference(not_ans):
    print(data)

Problem: p02829
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A=int(input())
B=int(input())

ans=0

if A==1 and B==2:
  ans=3
elif A==1 and B==3:
  ans=2
else:
  ans=1
  
print(ans)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
A=int(input())
B=int(input())

C=sorted([A,B])
ans=0
 
if C==[1,2]:
  ans=3
elif C==[1,3]:
  ans=2
else:
  ans=1
  
print(ans)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=a+b
if c==3:
	print("2")
elif c==4:
	print("3")
else:
	print("1")

Failing test case input:
3
001

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
c=a+b
if c==3:
	print("3")
elif c==4:
	print("2")
else:
	print("1")

Problem: p02829
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = int(input())
b = int(input())

A = [1, 2, 3]
A.pop(a-1)
A.pop(b-2)
print(A[0])

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())

A = [1, 2, 3]
A[a-1]= 0
A[b-1] = 0
print(sum(A))

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = int(input())

ans_list = []
ans_list.append(A)
ans_list.append(B)
correct_list = [1,2,3]

ans = list(set(correct_list) - set(ans_list))
print(ans)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())

ans_list = []
ans_list.append(A)
ans_list.append(B)
correct_list = [1,2,3]

ans = list(set(correct_list) - set(ans_list))
print(ans[0])
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math as m
from array import *
import sys
import datetime
import calendar


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

if a==1 and b==2:
    print(3)
if a==2 and b==3:
    print(1)
if a==3 and b==1:
    print(3)
if a==3 and b==2:
    print(1)
if a==1 and b==3:
    print(2)
if a==3 and b==1:
    print(2)


Failing test case input:
3
001

Expected output:
2


Actual output:
3
2


Fixed submission (verdict: Accepted):
import math as m
from array import *
import sys
import datetime
import calendar


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

if a==1 and b==2:
    print(3)
if a==2 and b==3:
    print(1)
if a==2 and b==1:
    print(3)
if a==3 and b==2:
    print(1)
if a==1 and b==3:
    print(2)
if a==3 and b==1:
    print(2)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
if (a,b)==(1,2):
    print(3)
elif(a,b)==(1,3):
    print(2)
else:
    print(1)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
if {a,b}=={1,2}:
    print(3)
elif {a,b}=={1,3}:
    print(2)
else:
    print(1)

Problem: p02829
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def wczytaj_liste(): 
    wczytana_lista = input()
    lista_znakow = wczytana_lista.split()
    ostateczna_lista = []
    for element in lista_znakow:
        ostateczna_lista.append(int(element))
    return ostateczna_lista

def A_Round_One():
    A = wczytaj_liste()[0]
    B = wczytaj_liste()[0]
    lista_odpowiedzi = [1,2,3]
    n = 0
    odp = lista_odpowiedzi[n]
    for n in lista_odpowiedzi:
        if A != n and B != n: 
            print(n)
            break

Failing test case input:
3
001

Expected output:
2


Actual output:

Fixed submission (verdict: Accepted):
def wczytaj_liste(): 
    wczytana_lista = input()
    lista_znakow = wczytana_lista.split()
    ostateczna_lista = []
    for element in lista_znakow:
        ostateczna_lista.append(int(element))
    return ostateczna_lista

def A_Round_One():
    A = wczytaj_liste()[0]
    B = wczytaj_liste()[0]
    lista_odpowiedzi = [1,2,3]
    for n in lista_odpowiedzi:
        if A != n and B != n: 
            print(n)
            break
            
A_Round_One()

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
b=input()
c=a+b
if c==3:
    print(3)
elif c==4:
    print(2)
else:
    print(1)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())

c=a+b
if c==3:
    print(3)
elif c==4:
    print(2)
else:
    print(1)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
wrong_answer = [input() for i in range(2)]

all = [1,2,3]

for num in wrong_answer:
  if num in all:
    all.remove(num)
    
print(all)


Failing test case input:
3
001

Expected output:
2


Actual output:
[1, 2, 3]


Fixed submission (verdict: Accepted):
wrong_answer = [int(input()) for i in range(2)]

all = [1,2,3]

for num in wrong_answer:
  if num in all:
    all.remove(num)
    
print(all[0])
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = {1, 2, 3}
a.remove(int(input()))
a.remove(int(input()))
print(list(a))

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
val = {1, 2, 3}
val.remove(int(input()))
val.remove(int(input()))
print(list(val)[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())

print(6-a+b)

Failing test case input:
3
001

Expected output:
2


Actual output:
4


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
print(6-(a+b))

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
ans = [i+1 for i in range(3) if i+1 not in [a,b]]
print(ans)


Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
ans = [i+1 for i in range(3) if i+1 not in [a,b]][0]
print(ans)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
lis = [1,2,3]

l = list(map(int, input()))

for i in l:
    lis.remove(i)

print(lis[0])

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
lis = [1,2,3]

lis.remove(int(input()))
lis.remove(int(input()))

print(lis[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input("A")
b = input("B")

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

print(6-a-b)

Failing test case input:
3
001

Expected output:
2


Actual output:
AB2


Fixed submission (verdict: Accepted):
a = input("")
b = input("")

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

print(6-a-b)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ans = 6
for _ in range(2):
    a = int(input())
    ans += a
print(6 - ans)

Failing test case input:
3
001

Expected output:
2


Actual output:
-4


Fixed submission (verdict: Accepted):
ans = 0
for _ in range(2):
    a = int(input())
    ans += a
print(6 - ans)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = input()
if a+b==3:
  print("3")
elif a+b==4:
  print("2")
else:
  print("1")

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
if a+b==3:
  print("3")
elif a+b==4:
  print("2")
else:
  print("1")

Problem: p02829
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = int(input())
b = int(input())
x = (a,b)
if x == (1,2):
    print(3)
elif x == (2,3):
    print(1)
else:
    print(3)

Failing test case input:
3
001

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
x = (a,b)
if x == (1,2) or x == (2,1):
    print(3)
elif x == (2,3) or x == (3,2):
    print(1)
else:
    print(2)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
Z=[1,2,3]
Z.remove(a)
Z.remove(b)

print(Z)


Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
Z=[1,2,3]
Z.remove(a)
Z.remove(b)

print(Z[0])
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline
def print_ans(A,B):
    
    ans = [1, 2, 3]
    lists = [A, B]
    for a in ans:
        flg = True
        for b in lists:
            if a == b:
                flg == False
                break
        if flg:
            print(a)

if __name__ == '__main__':
    A = input().rstrip()
    B = input().rstrip()
    print_ans(A,B)




Failing test case input:
3
001

Expected output:
2


Actual output:
1
2
3


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline
def print_ans(A,B):
    
    ans = [1, 2, 3]
    lists = [A, B]
    for a in ans:
        flg = True
        for b in lists:
            if a == b:
                flg = False
                break
        if flg:
            print(a)

if __name__ == '__main__':
    A = int(input().rstrip())
    B = int(input().rstrip())
    print_ans(A,B)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
answer = [True, True, True]
answer[int(input()) - 1] = False
answer[int(input()) - 1] = False
print(answer.index(True))

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
answer = [True, True, True]
answer[int(input()) - 1] = False
answer[int(input()) - 1] = False
print(answer.index(True) + 1)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
if a==1:
  if b==2:
    print(3)
  else:
    print(2)
elif a==2:
  if b==1:
    print(3)
  else:
    print(1)
else:
  if a==1:
    print(2)
  else:
    print(1)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
if a==1:
  if b==2:
    print(3)
  else:
    print(2)
elif a==2:
  if b==1:
    print(3)
  else:
    print(1)
else:
  if b==1:
    print(2)
  else:
    print(1)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=int(input())
B=int(input())
L=[1,2,3]
L.remove(A)
L.remove(B)
print(L)


Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
A=int(input())
B=int(input())
L=[1,2,3]
L.remove(A)
L.remove(B)
print(L[0])

Problem: p02829
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
_list=[1,2,3]
_list.remove(int(input()))
_list.remove(int(input()))
_list[0]

Failing test case input:
3
001

Expected output:
2


Actual output:

Fixed submission (verdict: Accepted):
_list=[1,2,3]
_list.remove(int(input()))
_list.remove(int(input()))
print(_list[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = int(input())

if A == 1 or 2 and B == 1 or 2:
    print(3)
elif A == 1 or 3 and B == 1 or 3:
    print(2)
else:
    print(1)

Failing test case input:
3
001

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())

if (A == 1 and B == 2) or (A == 2 and B == 1):
    print(3)
elif (A == 1 and B == 3) or (B == 1 and A == 3):
    print(2)
else:
    print(1)
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
if {a,b}=={1,2}:
    print(3)
elif {a,b}=={1,2}:
    print(2)
else:
    print(1)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
if {a,b}=={1,2}:
    print(3)
elif {a,b}=={1,3}:
    print(2)
else:
    print(1)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())

if a*b==2:
  print(3)
elif a*b==3:
  print(1)
else:
  print(2)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())

if a*b==2:
  print(3)
elif a*b==3:
  print(2)
else:
  print(1)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = int(input())
L = A + B
print(5 - L)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())
L = A + B
print(5 - L + 1)

Problem: p02829
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n=int(input())
k=int(input())
print(6-n+k)

Failing test case input:
3
001

Expected output:
2


Actual output:
4


Fixed submission (verdict: Accepted):
n=int(input())
k=int(input())
print(6-(n+k))

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=0
if a==1:
  if b==2:
    c=3
  if b==3:
    c=2
elif a==2:
  if b==1:
    c==3
  if b==3:
    c==1
elif a==3:
  if b==1:
    c==2
  if b==2:
    c==1
print(c)    

Failing test case input:
3
001

Expected output:
2


Actual output:
0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
if a==1:
  if b==2:
    c=3
  elif b==3:
    c=2
elif a==2:
  if b==1:
    c=3
  elif b==3:
    c=1
elif a==3:
  if b==1:
    c=2
  elif b==2:
    c=1
print(c)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n1 = int(input())
n2 = int(input())
 
print(n1)
print(n2)
 
if n1 == 1:
  if n2 == 2:
    print("3")
  else:
    print("2")
elif n1 == 2:
  if n2 == 1:
    print("3")
  else:
    print("1")
elif n1 ==3:
  if n2 == 1:
    print("2")
  else:
    print("1")

Failing test case input:
3
001

Expected output:
2


Actual output:
3
1
2


Fixed submission (verdict: Accepted):
n1 = int(input())
n2 = int(input())
 


 
if n1 == 1:
  if n2 == 2:
    print("3")
  else:
    print("2")
elif n1 == 2:
  if n2 == 1:
    print("3")
  else:
    print("1")
elif n1 ==3:
  if n2 == 1:
    print("2")
  else:
    print("1")

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = int(input())
C = [1,2,3]
C.remove(A)
C.remove(B)
print(C)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())
C = [1,2,3]
C.remove(A)
C.remove(B)
print(C[0])
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = input()

if (a != 1 and b != 1):
  print(1)
elif (a != 2 and b != 2):
  print(2)
else:
  print(3)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
 
if (a != 1 and b != 1):
  print(1)
elif (a != 2 and b != 2):
  print(2)
else:
  print(3)

Problem: p02829
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = int(input())
b = int(input())
print(i for i in range(1,4) if i != a and i != b)

Failing test case input:
3
001

Expected output:
2


Actual output:
<generator object <genexpr> at 0x7fdacf5a8110>


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
for i in range(1,4):
  if i != a and i != b:
    print(i)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

choices = [1,2,3]
for l in sys.stdin:
    choices.remove(int(l))

choices.pop()

Failing test case input:
3
001

Expected output:
2


Actual output:

Fixed submission (verdict: Accepted):
import sys

choices = [1,2,3]
for l in sys.stdin:
    choices.remove(int(l))

print(choices.pop())

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=(int(x) for x in input().split())
b=(int(x) for x in input().split())
numbers=[a,b]
for i in range(1,4):
  if i not in numbers:
    print(i)
    


Failing test case input:
3
001

Expected output:
2


Actual output:
1
2
3


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
numbers=[]
numbers.append(a)
numbers.append(b)
for i in range(1,4):
  if i not in numbers:
    print(i)

Problem: p02829
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
b=int(input())
s=[1,2,3]
s.remove(a)
s.remove(b)
print(s)


Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
s=[1,2,3]
s.remove(a)
s.remove(b)
print(s[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=int(input())
B=int(input())
s={1,2,3}
s.discard(A)
s.discard(B)
int(s.pop())

Failing test case input:
3
001

Expected output:
2


Actual output:

Fixed submission (verdict: Accepted):
A=int(input())
B=int(input())
s={1,2,3}
s.discard(A)
s.discard(B)
print(int(s.pop()))

Problem: p02829
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=set(int(input())for i in range(2))
print({1,2,3}-S)

Failing test case input:
3
001

Expected output:
2


Actual output:
{2}


Fixed submission (verdict: Accepted):
S=set(int(input())for i in range(2))
print(list({1,2,3}-S)[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=list(map(int,input().split()))
li=[1,2,3]
result=list(set(li)-set(s))
print(result[0])

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
s=[a,b]
li=[1,2,3]
result=list(set(li)-set(s))
print(result[0])
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())

l = [1,2,3]

l.remove(a)
l.remove(b)

print(str(l))

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
l = [1,2,3]
l.remove(a)
l.remove(b)
print(''.join(map(str,l)))

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=input()
B=input()

ans=[1,2,3]
ans.remove(int(A))
ans.remove(int(B))
print(ans)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
A=input()
B=input()

ans=[1,2,3]
ans.remove(int(A))
ans.remove(int(B))
a=ans.pop()
print(a)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
i = [input() for i in range(2)]

if 1 not in i:
  print("1")
elif 2 not in i:
  print("2")
else:
  print("3")

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
i = [int(input()) for i in range(2)]

if 1 not in i:
  print("1")
elif 2 not in i:
  print("2")
else:
  print("3")

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = int(input())

out = 5 - A -B
print(out)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())

out = 6 - A -B
print(out)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
print(1 if a!=1 and b!=1 else 2 if a!=1 and b!=1 else 3)

Failing test case input:
3
001

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
print(1 if a!=1 and b!=1 else 2 if a!=2 and b!=2 else 3)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
print(6 - a + b)

Failing test case input:
3
001

Expected output:
2


Actual output:
4


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
print(6-a-b)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=0
for i in range(1):
  a=a+int(input())
print(int(6-a))

Failing test case input:
3
001

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a=0
for i in range(2):
  a=a+int(input())
print(int(6-a))

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = int(input())
y = int(input())

if (x==1)&(y==2):
    print('3')
elif (x==2)&(y==3):
    print('1')
elif x==3 & y==1:
    print('2')
elif x==1 & y==3:
    print('2')
elif x==2 & y==1:
    print('3')
elif x==3 & y==2:
    print('1')

Failing test case input:
3
001

Expected output:
2


Actual output:

Fixed submission (verdict: Accepted):
x = int(input())
y = int(input())

if (x==1)&(y==2):
    print('3')
elif (x==2)&(y==3):
    print('1')
elif (x==3) & (y==1):
    print('2')
elif (x==1) & (y==3):
    print('2')
elif (x==2) & (y==1):
    print('3')
elif (x==3) & (y==2):
    print('1')
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = int(input())
for i in range (1, 4):
  if i != A != B:
    print(i)

Failing test case input:
3
001

Expected output:
2


Actual output:
1
2


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())
for i in range (1, 4):
  if i != A and i != B:
    print(i)
    break

Problem: p02829
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
b=int(input())
l=[]
l.append(a)
l.append(b)
if '1' not in l:
  print(1)
elif '2' not in l:
  print(2)
else:
  print(3)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
l=[]
l.append(a)
l.append(b)
if 1 not in l:
  print(1)
elif 2 not in l:
  print(2)
else:
  print(3)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
if a==1 and b==2:
    print(3)
elif a==1 and b==3:
    print(2)
else:
    print(1)

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
if (a==1 and b==2) or (a==2 and b==1):
    print(3)
elif (a==1 and b==3) or (a==3 and b==1):
    print(2)
else:
    print(1)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=int,input().split()
if a==3 and b==1 :
  print(2)
elif a==1 and b==2 :
  print(3)
elif a==2 and b==3 :
  print(1)
elif a==3 and b==2 :
  print(1)
elif a==1 and b==3 :
  print(2)
elif a==2 and b==1 :
  print(3)


Failing test case input:
3
001

Expected output:
2


Actual output:

Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
if a==3 and b==1 :
  print(2)
elif a==1 and b==2 :
  print(3)
elif a==2 and b==3 :
  print(1)
elif a==3 and b==2 :
  print(1)
elif a==1 and b==3 :
  print(2)
elif a==2 and b==1 :
  print(3)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=int(input())
B=int(input())
ans=[1,2,3]
ans.remove(A)
ans.remove(B)
print(ans)


Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
A=int(input())
B=int(input())
ans=[1,2,3]
ans.remove(A)
ans.remove(B)
print(ans.pop())

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list = [1,2,3]
a = int(input())
b = int(input())
if a and b in list:
    list.remove(a)
    list.remove(b)
print(list)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
list = [1,2,3]
a = int(input())
b = int(input())
if a and b in list:
    list.remove(a)
    list.remove(b)
for i in list:
    print(i)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())

if a!=1 or b!=1:
  print(1)
elif a!=2 or b!=2:
  print(2)
else:
  print(3)


Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
 
if a!=1 and b!=1:
  print(1)
elif a!=2 and b!=2:
  print(2)
else:
  print(3)
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())

List = {a, b}

if List == {1, 2}:
  print(3)
if List == {2, 3}:
  print(1)
if List == {3, 1}:
  print(1)



Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())

List = {a, b}

if List == {1, 2}:
  print(3)
if List == {2, 3}:
  print(1)
if List == {3, 1}:
  print(2)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
all=[1,2,3]

A=int(input())
B=int(input())

all.remove(A)
all.remove(B)

print(all)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
all=[1,2,3]
 
A=int(input())
B=int(input())
 
all.remove(A)
all.remove(B)
 
print(all[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline
def print_ans(A,B):
    
    ans = [1, 2, 3]
    lists = [A, B]
    for a in ans:
        flg = True
        for b in lists:
            if a == b:
                flg == False
                break
        if flg:
            print(a)

if __name__ == '__main__':
    A = int(input().rstrip())
    B = int(input().rstrip())
    print_ans(A,B)




Failing test case input:
3
001

Expected output:
2


Actual output:
1
2
3


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline
def print_ans(A,B):
    
    ans = [1, 2, 3]
    lists = [A, B]
    for a in ans:
        flg = True
        for b in lists:
            if a == b:
                flg = False
                break
        if flg:
            print(a)

if __name__ == '__main__':
    A = int(input().rstrip())
    B = int(input().rstrip())
    print_ans(A,B)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import random
A = random.randint(1,3)
B = random.randint(1,3)
while A == B:
    B = random.randint(1,3)

if A == 1:
    if B == 2:
        print(3)
    elif B == 3:
        print(2)
elif A == 2:
    if B == 1:
        print(3)
    elif B == 3:
        print(1)
elif A == 3:
    if B == 1:
        print(2)
    elif B == 2:
        print(1)


Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())

if A == 1:
    if B == 2:
        print(3)
    elif B == 3:
        print(2)
elif A == 2:
    if B == 1:
        print(3)
    elif B == 3:
        print(1)
elif A == 3:
    if B == 1:
        print(2)
    elif B == 2:
        print(1)
Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
code1 = input()
code2 = input()

if code1==1:
  if code2==2:
    print(3)
  else:
    print(2)
elif code1==2:
  if code2==3:
    print(1)
  else:
    print(3)
else:
  if code2==1:
    print(2)
  else:
    print(1)
    

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
code1 = int(input())
code2 = int(input())
if code1==1 and code2==2:
  print(3)
elif code1==1 and code2==3:
  print(2)
elif code1==2 and code2==3:
  print(1)
elif code1==2 and code2==1:
  print(3)
elif code1==3 and code2==1:
  print(2)
else:
  print(1)

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

s = [1,2,3]
s.remove(int(input()))
s.remove(int(input()))
print(s)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
s = [1,2,3]
s.remove(int(input()))
s.remove(int(input()))
print(s[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ans = [1,2,3]
a = int(input())
b = int(input())
ans.remove(a)
ans.remove(b)

print(ans)

Failing test case input:
3
001

Expected output:
2


Actual output:
[2]


Fixed submission (verdict: Accepted):
ans = [1,2,3]
a = int(input())
b = int(input())
ans.remove(a)
ans.remove(b)

print(ans[0])

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ab = list(map(int, input().split()))

print(min(set([1, 2, 3]) - set(ab)))

Failing test case input:
3
001

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())

print(min((set([1, 2, 3]) - set([a, b]))))

Problem: p02829
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = int(input())

answers = {1:True, 2:True, 3:True}
answers.pop(A)
answers.pop(B)
list(answers.keys())[0]

Failing test case input:
3
001

Expected output:
2


Actual output:

Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())

answers = {1:True, 2:True, 3:True}
answers.pop(A)
answers.pop(B)
print(list(answers.keys())[0])

Problem: p02829
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = int(input())
b = int(input())
for i in (1,4):
  if i not in [1,2,3]:
    print(i)

Failing test case input:
3
001

Expected output:
2


Actual output:
4


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
for i in range(1,4):
  if i not in [a, b]:
    print(i)
Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = list(map(int, input().split()))
print(max([A+B],[A-B],[A*B]))


Failing test case input:
-13 3

Expected output:
-10

Actual output:
[-10]


Fixed submission (verdict: Accepted):
A, B = list(map(int, input().split()))
l = [A+B, A-B, A*B]
print(max(l))

Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('整数？')
num_int = list(map(int, input('>>').split()))
A = num_int[0]
B = num_int[1]

if(A+B > A-B):
    if(A+B > A*B):
        print(A+B)
    else:
        print(A*B)
else:
    if(A-B > A*B):
        print(A-B)
    else:
        print(A*B)

Failing test case input:
-13 3

Expected output:
-10

Actual output:
整数？
>>-10


Fixed submission (verdict: Accepted):
num_int = list(map(int, input().split()))
A = num_int[0]
B = num_int[1]

if(A+B > A-B):
    if(A+B > A*B):
        print(A+B)
    else:
        print(A*B)
else:
    if(A-B > A*B):
        print(A-B)
    else:
        print(A*B)

Problem: p02945
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A, B = map(int, input().split())
max(A*B, A-B, A+B)

Failing test case input:
-13 3

Expected output:
-10

Actual output:

Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
print(max(A*B, A-B, A+B))

Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
IN = input()
IN = "40 50"
A, B = [int(x) for x in IN.split()]
C = max(A+B, A-B, A*B)
print(C)

Failing test case input:
-13 3

Expected output:
-10

Actual output:
2000


Fixed submission (verdict: Accepted):
IN = input()
A, B = [int(x) for x in IN.split()]
C = max(A+B, A-B, A*B)
print(C)

Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())

max(A+B,A-B,A*B)

Failing test case input:
-13 3

Expected output:
-10

Actual output:

Fixed submission (verdict: Accepted):
A,B = map(int,input().split())

print(max(A+B,A-B,A*B))

Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int,input().split()))

print(A[0]+A[1],A[0]-A[1],A[0]*A[1])

Failing test case input:
-13 3

Expected output:
-10

Actual output:
-10 -16 -39


Fixed submission (verdict: Accepted):
A = list(map(int,input().split()))
print(max(A[0]+A[1],A[0]-A[1],A[0]*A[1]))

Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
max_num = 0
for i in [a*b, a-b, a+b]:
    if i > max_num:
        max_num = i
print(max_num)

Failing test case input:
-13 3

Expected output:
-10

Actual output:
0


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

max_num = a + b
for i in [a*b, a-b]:
    if i > max_num:
        max_num = i
print(max_num)

Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
max_ab = 0
max_ab = max(a+b,max_ab)
max_ab = max(a-b,max_ab)
max_ab = max(a*b,max_ab)
print(max_ab)

Failing test case input:
-13 3

Expected output:
-10

Actual output:
0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
max_ab = -100
max_ab = max(a+b,max_ab)
max_ab = max(a-b,max_ab)
max_ab = max(a*b,max_ab)
print(max_ab)
Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print(a+b,a-b,a*b)

Failing test case input:
-13 3

Expected output:
-10

Actual output:
-10 -16 -39


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(max(a+b,a-b,a*b))

Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

a, b = list(map(int, input().split()))
m = 0
if m < a + b:
    m = a+b
if m < a - b:
    m = a-b
if m < a*b:
    m = a*b

print(m)



Failing test case input:
-13 3

Expected output:
-10

Actual output:
0


Fixed submission (verdict: Accepted):

a, b = list(map(int, input().split()))
m = -200000
if m < a + b:
    m = a+b
if m < a - b:
    m = a-b
if m < a*b:
    m = a*b

print(m)

Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())

X = []
X.append(A+B)
X.append(A-B)
X.append(A*B)

X.sort()

print(X[0])


Failing test case input:
-13 3

Expected output:
-10

Actual output:
-39


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())

X = []
X.append(A+B)
X.append(A-B)
X.append(A*B)

X.sort()

print(X[2])

Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input_list = input().split()
print(input_list)
A = int(input_list[0])
B = int(input_list[1])

if (A+B) >= (A-B) and (A+B) >= (A*B):
    print(A+B)
elif (A+B) >= (A-B) and (A+B) <= (A*B):
    print(A*B)
elif (A+B) <= (A-B) and (A+B) >= (A*B):
    print(A-B)
elif (A+B) <= (A-B) and (A+B) <= (A*B):
    if (A-B) >= (A*B):
        print(A-B)
    else:
        print(A*B)

Failing test case input:
-13 3

Expected output:
-10

Actual output:
['-13', '3']
-10


Fixed submission (verdict: Accepted):
input_list = input().split()
A = int(input_list[0])
B = int(input_list[1])

if (A+B) >= (A-B) and (A+B) >= (A*B):
    print(A+B)
elif (A+B) >= (A-B) and (A+B) <= (A*B):
    print(A*B)
elif (A+B) <= (A-B) and (A+B) >= (A*B):
    print(A-B)
elif (A+B) <= (A-B) and (A+B) <= (A*B):
    if (A-B) >= (A*B):
        print(A-B)
    else:
        print(A*B)

Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    a, b = map(int, open(0).read().split())

    add = a + b
    sub = a - b
    mult = a * b

    ans = max(add, sub, mult)
    print(ans)
    return()

if __name__ == '__init__':
    main()


Failing test case input:
-13 3

Expected output:
-10

Actual output:

Fixed submission (verdict: Accepted):
def main():
    a, b = map(int, open(0).read().split())

    add = a + b
    sub = a - b
    mult = a * b

    ans = max(add, sub, mult)
    print(ans)
    return()

if __name__ == '__main__':
    main()

Problem: p02945
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print(max(a,b))

Failing test case input:
-13 3

Expected output:
-10

Actual output:
3


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(max(a+b,a-b,a*b))