Problem:


Score : 100 points

Problem Statement

Snuke is giving cookies to his three goats.

He has two cookie tins. One contains A cookies, and the other contains B cookies. He can thus give A cookies, B cookies or A+B cookies to his goats (he cannot open the tins).

Your task is to determine whether Snuke can give cookies to his three goats so that each of them can have the same number of cookies.

Constraints

1 \leq A,B \leq 100

Both A and B are integers.

Input

Input is given from Standard Input in the following format:

A B

Output

If it is possible to give cookies so that each of the three goats can have the same number of cookies, print Possible; otherwise, print Impossible.

Sample Input 1

4 5

Sample Output 1

Possible

If Snuke gives nine cookies, each of the three goats can have three cookies.

Sample Input 2

1 1

Sample Output 2

Impossible

Since there are only two cookies, the three goats cannot have the same number of cookies no matter what Snuke gives to them.



Sample input:
4 5


Sample output:
Possible

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a%3==0 or b%3==0 or a+b%3==0:
  print('Possible')
else:print('Impossible')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print('Impossible' if a%3 or b%3 or (a+b)%3 else 'Possible')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print('Possible' if a%3 or b%3 or (a+b)%3 else 'Impossible')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a == 0 and b == 0:
	print("Impossible")
elif a == 0 and b%3 != 0:
	print("Impossible")
elif a%3 != 0 and b == 0:
	print("Impossible")
elif a%3 == 0 or b%3 == 0 or (a+b)%3:
	print("Possible")

Submission status: Wrong Answer

Solution code:
s = sum(map(int, input().split()))
print("Possible" if s%3==0 and s != 0 else "Impossible")

Submission status: Wrong Answer

Solution code:
print("Possible" if sum(map(int, input().split()))%3==0 else "Impossible")

Submission status: Wrong Answer

Solution code:
a,b =map(int,input().split())
if (a+b)%3==0 and a%3==0 and b%3==0:
	print("Possible")
else :
	print("Impossible")

Submission status: Wrong Answer

Solution code:
a,b =map(int,input().split())
if (a+b)%3==0:
	print("Possible")
else :
	print("Impossible")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
a,s = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if (a + b) % 3 == 0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys

a, b = map(int, sys.stdin.readline().split())

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

Submission status: Wrong Answer

Solution code:
def biscoitos():
    A, B = map(int,input().split())
    soma = A+B
    if A%3 == 0:
        print('Possible')
    elif B%3 == 0:
        print ('Possible')
    elif soma%3 == 0:
        print('Possible')
    else:
        print('Impossible')

Submission status: Wrong Answer

Solution code:
def goatsSnuke():
    a,b = map(int,input().split())
    soma = a + b
    if a % 3 == 0:
        return 'Possible'
    elif b % 3 == 0:
        return 'Possible'
    elif soma % 3 == 0:
        return 'Possible'
    else:
        return 'Impossible'

Submission status: Wrong Answer

Solution code:
def biscoitos():
    A, B = map(int, input().split())
    soma = A+B
    if soma%3 == 0:
        print('Possible')
    else:
        print('Impossible')

Submission status: Wrong Answer

Solution code:
def biscoitos():
    A,b = input().split()
    soma = int(A)+int(B)
    if soma%3 == 0:
        print('Possible')
    else:
        print('Impossible')

Submission status: Wrong Answer

Solution code:
def biscoitos():
    A = input()
    B = input()
    soma = int(A)+int(B)
    if soma%3 == 0:
        print('Possible')
    else:
        print('Impossible')

Submission status: Wrong Answer

Solution code:
def goatsSnuke():
    a = int(input('Quantos biscoitos tem na lata A? '))
    b = int(input('Quantos biscoitos tem na lata B? '))
    soma = a + b
    if a % 3 == 0:
        return 'Possible'
    elif b % 3 == 0:
        return 'Possible'
    elif soma % 3 == 0:
        return 'Possible'
    else:
        return 'Impossible'

Submission status: Wrong Answer

Solution code:
def cookies(A,B):
    if A%3==0 or B%3==0 or (A+B)%3==0:
        return 'Possible'
    else:
        return 'Impossible'

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a%3==0 and b%3==0 and (a+b)%3==0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
print('Possible' if True in (A % 3 == 9, B % 3 == 0, (A + B) % 3 == 0) else 'Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b=list(map(int,input().split(" ")))
if a+b==3 or a==3 or b==3:
  print('Possible')
else:
  print('Impossible')

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

A_B = ((A+B)%3)
Awarusan = (A%3)
Bwarusan = (B%3)

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

A_B = ((A+B)%3)
Awarusan = (A%3)
Bwarusan = (B%3)

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

A_B = ((A+B)%3)

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

A_B = ((A+B)%3)

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print('Possible' if a%3==0 or b%3==0 or a+b&3==0 else 'Impossible')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if not (a % 3) * (b % 3) * ((a + b) % 3) :
    print("Posiible")
else: 
    print("Impossible")

Submission status: Wrong Answer

Solution code:
a,b=map(int, input().split()) 
if (a+b)%3 ==0:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
print("Possible" if (a+b)%3==0 else "Impossible")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print('Possible') if (a+b)%3==0 else print('Impossible')

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

a, b = [int(x) for x in input().split()]
ans = "Possible" if (a + b) % 3 == 0 else 'Impossible'
print(ans)

Submission status: Wrong Answer

Solution code:
a, b =map(int, input().split())
if (a+b)%3==0:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
print('Possible' if sum(list(map(int,input().split())))%3==0 else 'Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b =map(int,input().split())
a%=3
b%=3
print("Yes" if not a or not b or not (a+b)%3 else "No")

Submission status: Wrong Answer

Solution code:
a,b = input().split()
a = int(a)
b = int(b)
if (a+b)%3==0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
A = a[0]
B = a[1]

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print("Possible" if (a+b)%3==0 else "Impossible")

Submission status: Wrong Answer

Solution code:
cookie = (input())
unti = cookie.split()
cookie_1 = int(unti[0])
cookie_2 = int(unti[1])

print(cookie_1 + cookie_2 % 3 == 0 , cookie_1 + cookie_2 % 3)
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")

Submission status: Wrong Answer

Solution code:
def yagi(cookie_1,cookie_2):
  if cookie_1 % 3 == 0 & cookie_1 != 0:
     return "Possible"
  elif cookie_2 % 3 == 0:
     return "Possible"
  elif cookie_1 + cookie_2 % 3 == 0 & cookie_2 != 0:
     return "Possible"
  else:
     return "Impossible"

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

Submission status: Wrong Answer

Solution code:
def yagi(cookie_1,cookie_2):
  if cookie_1 % 3 == 0 & cookie_1 != 0:
     return "possible"
  elif cookie_2 % 3 == 0:
     return "possible"
  elif cookie_1 + cookie_2 % 3 == 0 & cookie_2 != 0:
     return "possible"
  else:
     return "impossible"

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

Submission status: Wrong Answer

Solution code:
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])))

Submission status: Wrong Answer

Solution code:
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])))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print("Possible" if (a+b)%3 == 0 else "Impossible")

Submission status: Wrong Answer

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

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

print('No')

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a%3 == 0 or b%3 == 0 or (a+b)%3 == 0:
  print("Possible")
else:
  print("Inpossible")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
  print('possible')
else:
  print('Impossible')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print( 'Possible' if (a+b)%3==0  else 'Impossible')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print('possible' if a%3==0 or b%3==0 or (a+b)%3==0 else 'Impossible')

Submission status: Wrong Answer

Solution code:
def resolve():
    a, b = map(int, input().split())
    print("Possible") if any([True for i in [a, b, a + b] if i % 3 == 0]) else "Impossible"


if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a%3 or b%3 or (a+b)%3:
    print('Impossible')
else: print('Possible')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print('Impossible' if (a%3 or b%3 or (a+b)%3) else 'Possible')

Submission status: Wrong Answer

Solution code:
#ABC067A
A, B = list(map(int, input().split()))

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

Submission status: Wrong Answer

Solution code:
A, B = input().split()
n = int(A) + int(B)
if n % 3 == 0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split());print("YNeos"[all([A%3,B%3,(A+B)%3])::2])

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a%3==0 | b%3==0 | (a+b)%3==0:
  print("Possible")
else:
  print("Impossible")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a%3 & b%3 & (a+b)%3:
  print("Impossible")
else:
  print("Possible")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print('Possible' if (a+b) % 3 ==0  and (a+b) != 0 else 'Impossible')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print('Possible' if (a+b) % 3 ==0 else 'Impossible')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a % 3 == 0 or b % 3 == 0 or (a+b) % 3 ==0:
  print('possible')
  
else:
  print('impossible')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print("NO") if all((a%3,b%3,(a+b)%3)) else print("YES")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if (a+b)%3 == 0:
  print("Possible")
else:
  print('Impossible')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print("Possible" if (a+b)%3 == 0 else 'Impossible')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a+b % 3 == 0 or a % 3 == 0 or b % 3 == 0:
  print('Possible')
else:
  print('Impossible')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a+b % 3 == 0:
  print('Possible')
else:
  print('Impossible')

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print('Possible' if a%3==0 or b%3==0 or (a+b)%3==0 else 'Inpossible')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if (a+b)%3 == 0:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if (a+b)%3==0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print('Possible' if a*b*(a+b)%3 else 'Impossible')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print('Possible' if a%3 or b%3 or (a+b)%3 else 'Impossible')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print('Possible' if a%3 or b%3 or (a+b)%3 else 'Impossile')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print('Possible' if a%3 or b%3 or a+b%3 else 'Impossile')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print('Possible' if a%3==0 or b%3==0 or a+b%3==0 else 'Impossible')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if (a+b)%3 == 0:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if (a+b)%3 or a%3 or b%3:
  print('Impossible')
else:
  print('Possible')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print(['Impossible','Possible'][(a+b)%3==0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#16:31
a,b = map(int,input().split())
if a % 3 == 0 or b % 3 == 0 or (a+b) % 3 == 0:
  print('POSSIBLE')
else:
  print('IMPOSSIBLE')

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
a,b=[int(x) for x in input().split()]
if (a%3==1 and b%3==1) or (a%3==2 and b%3==2):
  print('Impossible')
else:
  print('Posible')

Submission status: Wrong Answer

Solution code:
a,b=[int(x) for x in input().split()]
if (a%3==1 and b%3==1) or (a%3==2 and b%3==2):
  print('Possible')
else:
  print('Impposible')

Submission status: Wrong Answer

Solution code:
num = input().split()
if (int(num[0])+int(num[1])) % 3 == 0:
  print('Possible')
else: print('Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = list(map(int,input().split()))
if (A + B) % 3 == 0:
  print("Posslible")
else:
  print("Imposslible")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
A, B = list(map(int,input().split()))
if A * B % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Submission status: Wrong Answer

Solution code:
total = sum(list(map(int, input().split())))
if total % 3 == 0:
  print('Possible')
else:
  print('Impossible')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
c = a+b
if c%3 == 0:
  print('Possible')
else:
  print('Impossible')

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
if (a+b) % 3 == 0 :
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
if (a+b) % 3 :
    print("Impossible")
else:
    print("Possible")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print('Possible' if (a + b) % 3 == 0 else 'Impossible')

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a%3 or b%3 or (a+b)%3: print("Possible")
else: print("Impossible")

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def main():
    A, B = map(int, input().split())
    if max(A, B, A + B) >= 3:
        print('Possible')
    else:
        print('Impossible')


main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if (a+b) % 3 == 0 :
  print('Possible')
else :
  print('Impossible')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a % 3 or b % 3 or a+b % 3:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
a,b = list(map(int,input().split(" ")))
print('Possible' if(a+b)%3==0 else 'Impossible')

Submission status: Wrong Answer

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

tasi = int(a+b)

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

Submission status: Wrong Answer

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

tasi = a+b

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# sys.stdin.readline()
import sys
input = sys.stdin.readline

a, b = map(int, input().split())
if (a*b)%3 == 0 or a%3 == 0 or b%3 == 0:
    ans = 'Possible'
else:
    ans = 'Impossible'
print(ans)

Submission status: Wrong Answer

Solution code:
# sys.stdin.readline()
import sys
input = sys.stdin.readline

a, b = map(int, input().split())
if (a*b)%3 == 0:
    ans = 'Possible'
else:
    ans = 'Impossible'
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = input().split()
a, b = int(a), int(b)
if (a + b) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Submission status: Wrong Answer

Solution code:
A,B = [int(i) for i in input().split()]
if A % 3 == 0:
    print("Possible")
elif B % 3 == 0:
    print("Possible")
elif (A + B) % 3 == 0:
    print("Possible")
else:
    print("ImPossible")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n,k=map(int,input().split())
if (n+k)>2:
  print("Possible")
else:
  print("Impossible")

Submission status: Wrong Answer

Solution code:
a, b = map(int, raw_input().split())
c = a + b
if c % 3 == 0:
    print "Possible"
else:
    print "Impossible"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if A % 3 == 0 or B % 3 == 0 or (A+B) % 3 == 0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
# ABC067A - Sharing Cookies
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")

Submission status: Wrong Answer

Solution code:
# ABC067A - Sharing Cookies
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")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if ((a+b)%3) or a%3 or b%3:
  print("Impossible")
else:
  print("Possible")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if(a+b)%3 or a%3 or b%3:
  print("Impossible")
else:
  print("Possible")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if(a+b)%3:
  print("Possible")
else:
  print("Impossible")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if(a+b)%3:
  print("Impossible")
else:
  print("Possible")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if (a + b % 3 == 0 or a % 3 == 0 or b % 3 == 0):
  print('Possible')
else:
  print('Impossible')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if (a * b % 3 == 0):
  print('Possible')
else:
  print('Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if (a + b) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
c = (a + b) % 3

if c == 0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a%3==0 or b%3==0 or a*b%3==0:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split(' '))
if (x+y)%3==0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
#A 067
A,B =map(int,input().split())
if A&3==0 or B%3==0 or (A+B)%3==0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
num=(A*B)%3
if num==0:
  print('Possible')
else:
  print('Impossible')

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split(' '))
msg = 'Possible' if (A%3)*(B*3)*((A+B)%3)==0 else 'Impossible'
print(msg)

Submission status: Wrong Answer

Solution code:
a, b = (int(i) for i in input().split())
if (a+b)%3==0:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
from sys import stdin
a, b = [int(x) for x in stdin.readline().rstrip().split()]
if (a+b)%3==0:
  print('Possible')
else:
  print('Impossible')

Submission status: Wrong Answer

Solution code:
from sys import stdin
a, b = [int(x) for x in stdin.readline().rstrip().split()]
if (a+b)/3:
  print('Possible')
else:
  print('Impossible')

Submission status: Wrong Answer

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

if a/3 >= 1 or b/3 >=1 or (a+b)/3 >= 1:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
    print('Possiblle')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
int_a, int_b = map(int, input().split())

if (int_a + int_b) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
n,p = map(int,input().split())
if (n+p)%3 == 0:
  print('Possible')
else:
  print('Impossible')