ZhenlongDai/ACPR huggingface dataset:
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
    print('Possiblle')
else:
    print('Impossible')

Failing test case input:
-2 29

Expected output:
Possible


Actual output:
Possiblle


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
    print('Possible')
else:
    print('Impossible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=list(map(int,input().split(" ")))
if a+b==3 or a==3 or b==3:
  print('Possible')
else:
  print('Impossible')

Failing test case input:
-4 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=list(map(int,input().split(" ")))
if (a+b)%3==0 or a%3==0 or b%3==0:
  print('Possible')
else:
  print('Impossible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a + b)%3 == 0:
  print('Possible')
else:
  print('Impossible')

Failing test case input:
-2 81

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a%3 == 0 or b%3 == 0 or (a + b)%3 == 0:
  print('Possible')
else:
  print('Impossible')

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

if a % 3 == 0 or b % 3 == 0 or (a*b) % 3 == 0 :
  print("Possible")
else:
  print("Impossible")

Failing test case input:
7 -4

Expected output:
Possible


Actual output:
Impossible


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

if a % 3 == 0 or b % 3 == 0 or (a+b) % 3 == 0 :
  print("Possible")
else:
  print("Impossible")

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

if a % 3 == 0 or b % 3 == 0 or a+b % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Failing test case input:
-13 4

Expected output:
Possible


Actual output:
Impossible


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

if a % 3 == 0 or b % 3 == 0 or (a+b) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = input().split(' ')
c = int(a) + int(b)
if c>3 and c%3==0:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
7 -4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split(" "))
if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

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

if (A+B)%3 == 0:
    print('Possible')
else:
    print('Impossible')

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


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

if A%3==0 or B%3==0 or (A+B)%3 == 0:
    print('Possible')
else:
    print('Impossible')
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print('Possible' if (a%3==0 or b%3==0 or a+b%3==0) else 'Impossible')

Failing test case input:
-13 4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print('Possible' if (a%3==0 or b%3==0 or (a+b)%3==0) else 'Impossible')

Problem: p03657
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b = map(int,input().split())
Flag = "Impossible"
if a%3==0:
  Flag = "Possible"
elif b%3 ==0:
  Flag="Possible"
elif (a+b)%3:
  Flag = "Possible"
  
print(Flag)
  
  

Failing test case input:
-2 28

Expected output:
Impossible


Actual output:
Possible


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
Flag = "Impossible"
if a%3==0:
  Flag = "Possible"
elif b%3 ==0:
  Flag="Possible"
elif (a+b)%3==0:
  Flag = "Possible"
  
print(Flag)

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    goats =3
    n = input()
    list = [int(i) for i in input().split()]
    if (list[0]% goats == 0 or list[1] % goats==0  or (list[0]+list[1]) % goats == 0):
        print('Possible')
    else:
        print("Impossible")
    if __name__ == "__main__":
        main()

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:

Fixed submission (verdict: Accepted):
def main():
    a, b = map(int, input().split())
    goats = 3
    if a%goats == 0 or b%goats == 0 or (a+b)%goats == 0:
        print("Possible")
    else:
        print("Impossible")


if __name__ == "__main__":
        main()

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print('Impossible' if (a%3 or b%3 or (a+b)%3) else 'Possible')

Failing test case input:
7 -4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print('Impossible' if a%3 and b%3 and (a+b)%3 else 'Possible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b= map(int,input().split())
if a%3==0 or b%3==0 or (a*b)%3==0:
  result='Possible'
else:
  result='Impossible'
  
print(result)

Failing test case input:
7 -4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b= map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
  result='Possible'
else:
  result='Impossible'
  
print(result)

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if (A + B) % 3 == 0:
    print("Possible")
else:
    print("Impossible")


Failing test case input:
-3 40

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
    print("Possible")
else:
    print("Impossible")
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print('Possible' if a%3 or b%3 or (a+b)%3 else 'Impossible')

Failing test case input:
-8 4

Expected output:
Impossible


Actual output:
Possible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print('Impossible' if a%3 and b%3 and (a+b)%3 else 'Possible')

Problem: p03657
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a=list(map(int,input().split()))
if a[0]%3==0 or a[1]%3==0 or a[0]+a[1]%3==0:
    print('Possible')
else:
    print('Impossible')

Failing test case input:
-13 4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
if a[0]%3==0 or a[1]%3==0 or (a[0]+a[1])%3==0:
    print('Possible')
else:
    print('Impossible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int,input().split())
if (A+B) % 3 == 0:
    print('Possible')
else:
    print('Impossible')

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A, B = map(int,input().split())
if (A+B) % 3 == 0 or A % 3 == 0 or B % 3 == 0:
    print('Possible')
else:
    print('Impossible')

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

if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
  print('Possoble')
else:
  print('Impossible')

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Possoble


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

if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
  print('Possible')
else:
  print('Impossible')

Problem: p03657
Buggy submission (Python (2.7.6), verdict: Wrong Answer):


import sys

def main(argv):
    for line in sys.stdin:
        A, B = map(lambda x: int(x), line.split(" ", 2))
        if ((A + B) % 3) == 0:
            print("Possible")
        else:
            print("Impossible")

if __name__ == "__main__":
    main(sys.argv)

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):


import sys

def main(argv):
    for line in sys.stdin:
        A, B = map(lambda x: int(x), line.split(" ", 2))
        if (A % 3) == 0 or (B % 3) == 0 or ((A+B) % 3) == 0:
            print("Possible")
        else:
            print("Impossible")

if __name__ == "__main__":
    main(sys.argv)

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int, input().split())
print('Possible' if (a+b)%3==0 or a%3==0 or b%2==0 else 'Impossible')

Failing test case input:
-8 4

Expected output:
Impossible


Actual output:
Possible


Fixed submission (verdict: Accepted):
a,b=map(int, input().split())
print('Possible' if (a+b)%3==0 or a%3==0 or b%3==0 else 'Impossible')
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a+b)%3 == 0:
    print("Possible")
else:
    print("Impossible")

Failing test case input:
0 -17

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if (a+b)%3 == 0 or a%3 == 0 or b%3 == 0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a + b % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Failing test case input:
-13 4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if (a + b) % 3 == 0:
    print("Possible")
    exit()
elif a % 3 == 0 or b % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=map(int,input().split())
if (a+b)%3==0:
    print ('Possible')
else:
    print('Impossible')

Failing test case input:
-4 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
    print ('Possible')
else:
    print('Impossible')

Problem: p03657
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=(int(x) for x in input().split())
c = ( a + b ) % 3
if (c == '0'):
    print ( 'Possible' )
else:
    print( 'Impossible' )

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=(int(x) for x in input().split())
c = ( a + b ) % 3
if ((int(a) % 3)  == 0 or  (int(b) % 3)  == 0 or int(c) == 0):
    print ( 'Possible' )
else:
    print ( 'Impossible' )

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A>=3 or B>=3 or A+B>=3:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
-2 28

Expected output:
Impossible


Actual output:
Possible


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A%3==0 or B%3==0 or (A+B)%3==0:
  print("Possible")
else:
  print("Impossible")

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

A_B = ((A+B)%3)

if A_B == 0:
    print("Possible")
else:
    ("Impossible")



Failing test case input:
-4 -10

Expected output:
Impossible


Actual output:

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

if (A+B) % 3 == 0 or A % 3 == 0 or B % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b =map(int, input().split())
if (a+b)%3==0:
    print("Possible")
else:
    print("Impossible")

Failing test case input:
-2 57

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b =map(int, input().split())
if (a+b)%3==0 or a%3==0 or b%3==0:
    print("Possible")
else:
    print("Impossible")
Problem: p03657
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b = map(int,input().split())
print("NO") if all((a%3,b%3,(a+b)%3)) else print("YES")

Failing test case input:
-13 4

Expected output:
Possible


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print("Impossible") if all((a%3,b%3,(a+b)%3)) else print("Possible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if (A + B) % 3 == 1 or (A + B) % 3 == 2:
    print("Impossible")
else:
    print("Possible")


Failing test case input:
-2 57

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

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

if (A + B) % 3 == 0:
    print("Possible")
else:
    print("Impossible")


Failing test case input:
0 -17

Expected output:
Possible


Actual output:
Impossible


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

if (A+B) % 3 == 0 or A % 3 == 0 or B % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a+b) % 3 == 0: print("Possible")
else: print("Impossible")

Failing test case input:
-2 81

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if (a+b) % 3 == 0 or a%3 == 0 or b%3 == 0: print("Possible")
else: print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
c=a+b

if a%3==0 or b&3==0 or c%3==0:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
-2 28

Expected output:
Impossible


Actual output:
Possible


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A%3==0 or B%3==0 or (A+B)%3==0:
    print('Possible')
else:
    print('Impossible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a + b) % 3 == 0: print('Possible')
else: print('Impossible')


Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0: print('Possible')
else: print('Impossible')

Problem: p03657
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
print('Possible' if sum(list(map(int,input().split())))%3==0 else 'Impossible')

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
print('Possible' if A*B*(A+B)%3==0 else 'Impossible')
Problem: p03657
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B = map(int,input().split())

if A >= 3 or B >= 3 or A + B >= 3 :
    print('Possible')
else:
    print('Impossible')

Failing test case input:
-2 28

Expected output:
Impossible


Actual output:
Possible


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

if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
    print('Possible')
else:
    print('Impossible')

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

print("Possible" if (A + B) % 3 == 0 else "Impossible")

Failing test case input:
0 -17

Expected output:
Possible


Actual output:
Impossible


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

print("Possible" if (A + B) % 3 == 0 or A % 3 == 0 or B % 3 == 0 else "Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def yagi(cookie_1,cookie_2):
  if cookie_1 % 3 == 0:
     return "possible"
  elif cookie_2 % 3 == 0:
     return "possible"
  elif cookie_1 + cookie_2 % 3 == 0:
     return "possible"
  else:
     return "impossible"

cookie = (input())
unti = cookie.split()
print(yagi(int(unti[0]),int(unti[1])))



Failing test case input:
-2 28

Expected output:
Impossible


Actual output:
impossible


Fixed submission (verdict: Accepted):
cookie = (input())
unti = cookie.split()
cookie_1 = int(unti[0])
cookie_2 = int(unti[1])

if cookie_1 % 3 == 0:
   print( "Possible")
elif cookie_2 % 3 == 0:
   print( "Possible")
elif ((cookie_1 + cookie_2) % 3 == 0):
   print( "Possible")
else :
   print( "Impossible")

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

if (A + B) % 3 == 0:
    print('Possible')
else:
    print('Impossible')


Failing test case input:
-3 40

Expected output:
Possible


Actual output:
Impossible


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

if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
    print('Possible')
else:
    print('Impossible')

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

if l[0] % 3 == 0:
    print("Possible")
elif l[1] % 3 == 0:
    print("Possible")
elif l[0]+l[1] % 3 == 0:
    print("Possible")
else:
    print("Impossible")


Failing test case input:
-13 4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
l = list(map(int, input().split()))
a = l[0]+l[1]

if l[0] % 3 == 0:
    print("Possible")
elif l[1] % 3 == 0:
    print("Possible")
elif a % 3 == 0:
    print("Possible")
else:
    print("Impossible")

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

if a%3 == 0 or b %3 == 0 or (a + b)%3 == 0:
    print("Yes")
else:
    print("No")

Failing test case input:
-4 -10

Expected output:
Impossible


Actual output:
No


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

if a%3 == 0 or b %3 == 0 or (a + b)%3 == 0:
    print("Possible")
else:
    print("Impossible")
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))
if(a[0]%3==0):
    print("Possible")
elif(a[1]%3==0):
    print("Possible")
elif((a[0]+a[1])%3==0):
    print("Possible")
else:
    print("impossible")


Failing test case input:
5 -4

Expected output:
Impossible


Actual output:
impossible


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))
if(a[0]%3==0):
    print("Possible")
elif(a[1]%3==0):
    print("Possible")
elif((a[0]+a[1])%3==0):
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int, input().split())
print('Possible' if (a+b)%3==0 else 'Impossible')

Failing test case input:
-3 40

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int, input().split())
print('Possible' if (a*b*(a+b))%3==0 else 'Impossible')

Problem: p03657
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A,B = map(int,input().split())

if A%3==0 or B%3==0 or (A+B)%3==0:
  print("possible")
else:
  print("impossible")

Failing test case input:
-4 -10

Expected output:
Impossible


Actual output:
impossible


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

if A%3==0 or B%3==0 or (A+B)%3==0:
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if ((a+b)%3) or a%3 or b%3:
  print("Impossible")
else:
  print("Possible")

Failing test case input:
-13 4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if (a+b)%3==0 or a%3==0 or b%3==0:
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = list(map(int,input().split()))
if A * B % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
-2 29

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A, B = list(map(int,input().split()))
if A % 3 ==0 or B % 3 ==0 or (A + B) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())

L = N + M

if L % 3 == 0 :
  print("Possible")
else:
  print("Impossible")


Failing test case input:
-3 40

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

L = N + M

if N % 3 == 0 or M % 3 == 0 or L % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B = map(int,input().split())
if (A+B)%3==0 or A>=3 or B >=3:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
-4 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if (A+B)%3==0 or A%3==0 or B%3==0:
  print("Possible")
else:
  print("Impossible")
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


import sys
from sys import stdin
input = stdin.readline


def main(args):
    A, B = map(int, input().split())
    if (A+B) % 3 == 0:
        print('Possible')
    else:
        print('Impossible')


if __name__ == '__main__':
    main(sys.argv[1:])
    


Failing test case input:
-3 40

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):


import sys
from sys import stdin
input = stdin.readline


def main(args):
    A, B = map(int, input().split())
    if (A+B) % 3 == 0 or A % 3 == 0 or B % 3 == 0:
        print('Possible')
    else:
        print('Impossible')


if __name__ == '__main__':
    main(sys.argv[1:])

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
    print("Yes")
else:
    print("No")

Failing test case input:
-4 -10

Expected output:
Impossible


Actual output:
No


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

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

a, b = list(map(int, input().rstrip().split()))
print("Possible" if a % 3 == 0 or b % 3 == 0 or a + b % 3 == 0 else "Possible")

Failing test case input:
5 -4

Expected output:
Impossible


Actual output:
Possible


Fixed submission (verdict: Accepted):

a, b = list(map(int, input().rstrip().split()))
print("Possible" if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0 else "Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a%3==0 | b%3==0 | (a+b)%3==0:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
-13 4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
  print("Possible")
else:
  print("Impossible")

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

if (a + b) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
-2 81

Expected output:
Possible


Actual output:
Impossible


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

if a % 3 ==0 or b % 3 == 0 or(a + b) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=(int(x) for x in input().split())
c = ( a + b ) % 3
if (str(c) == '0'):
    print ( 'Possible' )
else:
    print ( 'Impossible' )

Failing test case input:
0 -17

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=(int(x) for x in input().split())
c = ( a + b ) % 3
if ((int(a) % 3)  == 0 or  (int(b) % 3)  == 0 or int(c) == 0):
    print ( 'Possible' )
else:
    print ( 'Impossible' )
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):



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

if a % 3 == 0:
    print("Yes")
elif b % 3 == 0:
    print("Yes")
elif (a+b) % 3 == 0:
    print("Yes")
else:
    print("No")


Failing test case input:
5 -4

Expected output:
Impossible


Actual output:
No


Fixed submission (verdict: Accepted):



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

if a % 3 == 0:
    print("Possible")
elif b % 3 == 0:
    print("Possible")
elif (a+b) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a%3==0 or b%3==0 or a+b%3==0:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
7 -4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

A, B = map(int,input().split())


if (A + B) % 3 == 0:
    print('Possible')
else:
    print('Impossible')

Failing test case input:
-5 -6

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):

A, B = map(int,input().split())


if (A + B) % 3 == 0 or A % 3 == 0 or B % 3 == 0:
    print('Possible')
else:
    print('Impossible')

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




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


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


a, b = read_int_list()
if a + b >= 3 and (a + b) % 3 == 0:
    print('Possible')
else:
    print('Impossible')


Failing test case input:
-2 57

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
import sys




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


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


a, b = read_int_list()
if (a + b) % 3 == 0 or a % 3 == 0 or b % 3 == 0:
    print('Possible')
else:
    print('Impossible')

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


def main():
    a, b = map(int, input().split())

    if a + b % 3 == 0:
        print('Possible')
    else:
        print('Impossible')

if __name__ == '__main__':
    main()

Failing test case input:
-5 -6

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):


def main():
    a, b = map(int, input().split())

    if (a + b) % 3 == 0 or a % 3 == 0 or b % 3 == 0:
        print('Possible')
    else:
        print('Impossible')

if __name__ == '__main__':
    main()
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = list(map(int,input().split()))
if (A + B) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
-2 81

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A, B = list(map(int,input().split()))
if A % 3 ==0 or B % 3 ==0 or (A + B) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a+b) % 3 == 0:
    print('Possible')
else:
    print('Impossible')


Failing test case input:
-2 81

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a % 3 == 0 or b % 3 == 0 or (a+b) % 3 == 0:
    print('Possible')
else:
    print('Impossible')

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

if (a+b)%3==0:
    print("Possible")
else:
    print("Imposible")


Failing test case input:
-8 4

Expected output:
Impossible


Actual output:
Imposible


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

if a%3==0 or b%3==0 or (a+b)%3==0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
num=(A*B)%3
if num==0:
  print('Possible')
else:
  print('Impossible')

Failing test case input:
7 -4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
num=(A*B*(A+B))%3
if num==0:
  print('Possible')
else:
  print('Impossible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = (int(i) for i in input().split())
if (a+b)%3==0:
    print("Possible")
else:
    print("Impossible")



Failing test case input:
-3 40

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = (int(i) for i in input().split())
if (a+b)%3==0 or a%3==0 or b%3==0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split());print('Possible' if a%3==0 else 'Possible' if b%3==0 else 'Possible' if a+b%3==0 else 'Impossible')

Failing test case input:
7 -4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split());print('Possible' if a%3==0 else 'Possible' if b%3==0 else 'Possible' if (a+b)%3==0 else 'Impossible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int, input().split()) 
if (a+b)%3 ==0:
    print("Possible")
else:
    print("Impossible")

Failing test case input:
-5 -6

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int, input().split()) 
if (a+b)%3 ==0 or a%3==0 or b%3==0:
    print("Possible")
else:
    print("Impossible")
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if (A+B)%3==0:
    print('Possible')
else:
    print('Impossible')

Failing test case input:
-2 81

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if (A+B)%3==0 or A%3==0 or B%3==0:
    print('Possible')
else:
    print('Impossible')

Problem: p03657
Buggy submission (Python (2.7.6), verdict: Wrong Answer):


import sys

def main(argv):
    for line in sys.stdin:
        A, B = map(lambda x: int(x), line.split(" ", 2))
        if (A + B) >= 3:
            print("Possible")
        else:
            print("Impossible")

if __name__ == "__main__":
    main(sys.argv)

Failing test case input:
-4 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):


import sys

def main(argv):
    for line in sys.stdin:
        A, B = map(lambda x: int(x), line.split(" ", 2))
        if (A % 3) == 0 or (B % 3) == 0 or ((A+B) % 3) == 0:
            print("Possible")
        else:
            print("Impossible")

if __name__ == "__main__":
    main(sys.argv)

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if (A+B) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Failing test case input:
-5 -6

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if (A+B) % 3 == 0:
    print("Possible")
elif (A*B) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('Possible' if sum(map(int, input().split()))%3==0 else 'Impossible')

Failing test case input:
-3 40

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print('Possible' if (a%3==0 or b%3==0 or (a+b)%3==0) else 'Impossible')

Problem: p03657
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b = map(int, input().split())
print("Possible" if (a+b)%3 == 0 else "Impossible")

Failing test case input:
-3 40

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print("Possible" if a%3 == 0 or b%3 == 0 or (a+b)%3 == 0 else "Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
print('Impossible' if a%3!=0 and b%3!=0 and (a+b)%3==0 else 'Possible')

Failing test case input:
-4 -10

Expected output:
Impossible


Actual output:
Possible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print('Possible' if a%3==0 or b%3==0 or (a+b)%3==0 else 'Impossible')
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if (A + B) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


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

if A % 3 == 0 or B % 3 == 0 or (A + B)  % 3 == 0:
    print("Possible")
else:
    print("Impossible")

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

if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0:
    print("Possible")
else:
    print("Inpossible")

Failing test case input:
-4 -10

Expected output:
Impossible


Actual output:
Inpossible


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

if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a%3==0 and b%3==0 or (a+b)%3==0:
  print('possible')
else:
  print('impossible')

Failing test case input:
0 -17

Expected output:
Possible


Actual output:
impossible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split());print(["Impossible","Possible"][a%3==0 or b%3==0 or (a+b)%3==0])

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input().split())
if A % 3 == 0 or B % 3 == 0 or A + B % 3 ==0:
    print("Possible")
else:
    print("Impossible")

Failing test case input:
7 -4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A,B = map(int, input().split())
if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 ==0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k=map(int,input().split())
if (n+k)>2:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
-2 28

Expected output:
Impossible


Actual output:
Possible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A % 3 == 0:
    print("Possible")
elif B % 3 == 0:
    print("Possible")
elif (A + B) % 3 == 0:
    print("Possible")
else:
    print("Inpossible")

Failing test case input:
-2 28

Expected output:
Impossible


Actual output:
Inpossible


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A % 3 == 0:
    print("Possible")
elif B % 3 == 0:
    print("Possible")
elif (A + B) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
  print('possible')
else:
  print('Impossible')

Failing test case input:
-4 -18

Expected output:
Possible


Actual output:
possible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
  print('Possible')
else:
  print('Impossible')
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print('possible' if a%3==0 or b%3==0 or (a+b)%3==0 else 'Impossible')

Failing test case input:
15 -3

Expected output:
Possible


Actual output:
possible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print('Possible' if a%3==0 or b%3==0 or (a+b)%3==0 else 'Impossible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a % 9 != 0 and b % 9 != 0 and (a + b) % 9 != 0:
  print("Impossible")
else:
  print("Possible")

Failing test case input:
15 -3

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a % 3 != 0 and b % 3 != 0 and (a + b) % 3 != 0:
  print("Impossible")
else:
  print("Possible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    a, b = map(int, input().split())
    if (a + b) % 3 == 0:
        print('Possible')
    else:
        print('Impossible')


if __name__ == '__main__':
    main()


Failing test case input:
-4 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
def main():
    a, b = map(int, input().split())
    if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0:
        print('Possible')
    else:
        print('Impossible')


if __name__ == '__main__':
    main()

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

print("possible" if (A*B*(A+B)%3)==0 else "imposible")

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
possible


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

print("Possible" if (A*B*(A+B)%3)==0 else "Impossible")

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


a=input()
b=a.split(" ")
A=int(b[0])
B=int(b[1])
C=A+B
if C%3==0:
    print("Possible")
else:
    print("Impossible")


Failing test case input:
-2 57

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):


a=input()
b=a.split(" ")
A=int(b[0])
B=int(b[1])

C=A+B
if C%3==0 or A%3==0 or B%3==0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
print('Possible' if (a+b) % 3 ==0  and (a+b) != 0 else 'Impossible')

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a % 3 == 0 or b% 3 == 0 or (a+b) % 3 ==0:
    print('Possible')
else:
    print('Impossible')

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

if A + B % 3 == 0 or A % 3 == 0 or B % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Failing test case input:
-13 4

Expected output:
Possible


Actual output:
Impossible


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

if (A + B) % 3 == 0 or A % 3 == 0 or B % 3 == 0:
    print("Possible")
else:
    print("Impossible")
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def yagi(cookie_1,cookie_2):
  if cookie_1 % 3 == 0:
     return "Possible"
  elif cookie_2 % 3 == 0:
     return "Possible"
  elif cookie_1 + cookie_2 % 3 == 0:
     return "Possible"
  else:
     return "Impossible"

cookie = (input())
unti = cookie.split()
print(yagi(int(unti[0]),int(unti[1])))



Failing test case input:
-13 4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
cookie = (input())
unti = cookie.split()
cookie_1 = int(unti[0])
cookie_2 = int(unti[1])

if cookie_1 % 3 == 0:
   print( "Possible")
elif cookie_2 % 3 == 0:
   print( "Possible")
elif ((cookie_1 + cookie_2) % 3 == 0):
   print( "Possible")
else :
   print( "Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    a,b = list(map(int, input().split()))
    if a % 3 != 0 or b % 3 != 0:
        if (a+b) % 3 != 0:
            print('Impossible')
            exit()
    print('Possible')

if __name__ == '__main__':
    main()

Failing test case input:
-2 57

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
def main():
    a,b = list(map(int, input().split()))
    if a % 3 != 0 and b % 3 != 0:
        if (a+b) % 3 != 0:
            print('Impossible')
            exit()
    print('Possible')

if __name__ == '__main__':
    main()

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

if A+B % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


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

if A%3==0 or B%3==0 or (A+B)%3==0:
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    A, B = map(int, input().split())
    if max(A, B, A + B) >= 3:
        print('Possible')
    else:
        print('Impossible')


main()


Failing test case input:
0 -17

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
def main():
    A, B = map(int, input().split())
    if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
        print('Possible')
    else:
        print('Impossible')


main()

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print('Possible'if (a+b)>=3 else'Impossible')

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
x = a%3==0 or b%3==0 or (a+b)%3==0
print('Possible'if x else'Impossible')
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
  print("Possible")
else:
  print("Inpossible")

Failing test case input:
-2 28

Expected output:
Impossible


Actual output:
Inpossible


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=map(int,input().split())
if (a+b)%2==0:
    print("Possible")
else:
    print("Impossible")

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=[int(i) for i in input().split()]
if a%3==0 and b%3==0 and (a+b)%3==0:
  print('Impossible')
else:
  print('Possible')

Failing test case input:
-4 -10

Expected output:
Impossible


Actual output:
Possible


Fixed submission (verdict: Accepted):
a,b=[int(i) for i in input().split()]
if a%3==0 or b%3==0 or (a+b)%3==0:
  print('Possible')
else:
  print('Impossible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
print('Possible' if (a + b) % 3 == 0 else 'Impossible')

Failing test case input:
-2 57

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print('Possible' if (a + b) % 3 == 0  or a % 3 == 0 or b % 3 == 0 else 'Impossible')

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

A,B = map(int,input().split())
if (A % 3==0) or (B % 3==0) or (A+B % 3==0):
  print("Possible")
else:
  print("Impossible")

Failing test case input:
7 -4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):

A,B = map(int,input().split())
if (A % 3==0) or (B % 3==0) or ((A+B) % 3==0):
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = list(map(int,input().split(" ")))
if (A+B)%3==0:
    print("Possible")
else:
    print("Impossible")

Failing test case input:
-2 57

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A,B = list(map(int,input().split(" ")))
if (A+B)%3==0 or A%3==0 or B%3==0:
    print("Possible")
else:
    print("Impossible")

Problem: p03657
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=(int(x) for x in input().split())
c = ( a + b ) % 3
if (str(c) == '0'):
    print ( 'Possible' )
else:
    print ('Impossible')

Failing test case input:
-4 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=(int(x) for x in input().split())
c = ( a + b ) % 3
if ((int(a) % 3)  == 0 or  (int(b) % 3)  == 0 or int(c) == 0):
    print ( 'Possible' )
else:
    print ( 'Impossible' )
Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if (a+b) % 3 == 0:
  print('Possible')
else:
  print('Impossible')

Failing test case input:
-5 -6

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if (a+b) % 3 == 0 or a % 3 == 0 or b % 3 == 0:
  print('Possible')
else:
  print('Impossible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a%3 == 0 or b%3 == 0 or (a+b)%3 == 0:
  print("Possible")
else:
  print("Inpossible")

Failing test case input:
-4 -10

Expected output:
Impossible


Actual output:
Inpossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a%3 == 0 or b%3 == 0 or (a+b)%3 == 0:
  print("Possible")
else:
  print("Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split(" "))
if a % 3 == 0 or b % 3 == 0 or a + b % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Failing test case input:
-13 4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split(" "))
if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

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

import sys

A, B = map(int, input().split())

C = A + B

if C%3 == 0:
    print('Possible')
else:
    print('Impossible')

Failing test case input:
-5 -18

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):

import sys

A, B = map(int, input().split())

C = A + B

if A%3 == 0:
    print('Possible')
elif B%3 == 0:
    print('Possible')
elif C%3 == 0:
    print('Possible')
else:
    print('Impossible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
print("Possible" if ((A) % 3 == 0 or (B) % 3 == 0) else "Impossible")

Failing test case input:
-13 4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
print("Possible" if ((A) % 3 == 0 or (B) % 3 == 0 or (A + B) % 3 == 0) else "Impossible")

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a + b % 3 == 0 or a * b % 3 == 0):
  print('Possible')
else:
  print('Impossible')


Failing test case input:
7 -4

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if ((a + b) % 3 == 0 or a * b % 3 == 0):
  print('Possible')
else:
  print('Impossible')

Problem: p03657
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print( 'Possible' if (a+b)%3==0  else 'Impossible')

Failing test case input:
0 -17

Expected output:
Possible


Actual output:
Impossible


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print( 'Possible' if a%3==0 or b%3==0 or (a+b)%3==0  else 'Impossible')