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.

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

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

for i in [A, B, A + B]:
    if i % 3 == 0:
        print("Possible")
        exit()
print("Impossible")

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

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

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

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

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

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

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

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

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

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

Solution (Python):

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()

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

Solution (Python):
lst = input().split()

A = int(lst[0])
B = int(lst[1])

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

Solution (Python):
A,B=map(int,input().split())
C=A+B
if ((A>=3)&(A%3==0)) | ((B>=3)&(B%3==0)) | ((C>=3)&(C%3==0)):
  print("Possible")
else:
  print("Impossible")

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

Solution (Python):

A,B=map(int,input().split())
if (1<=A and A<=100)and(1<=B and B<=100):
    sum=A+B
    if A%3==0 or B%3==0 or sum%3==0:
        print('Possible')
    else:
        print('Impossible')

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

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

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

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

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

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

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

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

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

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

bool_a = a % 3 == 0
bool_b = b % 3 == 0
bool_ab = (a + b) % 3 == 0

if bool_a or bool_b or bool_ab:
    print('Possible ')
else:
    print('Impossible ')

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

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

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

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

Solution (Python):
a, b = (int(x) for x in input().split())
if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0: ans = 'Possible'
else: ans = 'Impossible'
print(ans)

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

Solution (Python):
A, B = map(int, input().split())
C = A + B

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

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

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

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

Solution (Python):
a, b = map(int, input().split())
if a % 3 == 0 or b % 3 == 0:
    print("Possible")
elif a % 3 == 1 and b % 3 == 2:
    print("Possible")
elif a % 3 == 2 and b % 3 == 1:
    print("Possible")
else:
    print("Impossible")

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

Solution (Python):
a, b = input().split()

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

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

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

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

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

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

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

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

Solution (Python):
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()

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

Solution (Python):
a=list(map(int,input().split()))
b=sum(a)
 
if (b%3 ==0 or a[0]%3 ==0 or a[1]%3==0) :
  print('Possible')
else :
  print('Impossible')

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

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

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

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

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

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

Solution (Python):



import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """4 5"""
        output = """Possible"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """1 1"""
        output = """Impossible"""
        self.assertIO(input, output)


def resolve():
    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__":
    
    resolve()

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

Solution (Python):



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

result = 'Impossible'

if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
    result = 'Possible'

print(result)

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

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

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

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

Solution (Python):


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

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

Solution (Python):
A_mai, B_mai = map(int, input().split())
summ = A_mai + B_mai

if (A_mai % 3 == 0 or B_mai % 3 == 0 or summ % 3 == 0):
    print('Possible')
else:
    print('Impossible')

Solution (Python):





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

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

Solution (Python):

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



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

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

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

Solution (Python):













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


result = "ret"


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

print(result)

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

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

Solution (Python):

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


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

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

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

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

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

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

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

Solution (Python):

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')

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

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

else:
    print('Impossible')

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

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

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

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

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

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

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

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

total = A + B

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

Solution (Python):




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


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

Solution (Python):

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


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

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

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

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

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

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

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

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

Solution (Python):

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


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

Solution (Python):


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

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

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

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

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

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

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

Solution (Python):

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

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

Solution (Python):
S_list = list(map(int,input().split()))

A, B = S_list[0], S_list[1]
if (A * B * (A + B)) % 3 == 0 :
    result = "Possible"
else:
    result = "Impossible"
print(result)

Solution (Python):
l=list(map(int,input().split()))
if(sum(l)%3==0 or l[0]%3==0 or l[1]%3==0):
    print('Possible')
else:
    print('Impossible')

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

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

Solution (Python):
a, b = (int(x) for x in input().split())
if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0:
    print('Possible')
else:
    print('Impossible')

Solution (Python):













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






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


print(answer)

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


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

Solution (Python):
a,b=map(int,input().split());print(['Imp','P'][a%3==0 or b%3==0 or (a+b)%3==0]+'ossible')

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

Solution (Python):


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


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

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

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

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

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

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

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

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

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

Solution (Python):
a_can, b_can = map(int, input().split())

if (a_can + b_can) % 3 == 0:
    print('Possible')
elif a_can % 3 == 0:
    print('Possible')
elif b_can % 3 == 0:
    print('Possible')
else:
    print('Impossible')

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

print(ans)

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

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

Solution (Python):
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext

def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    a, b = i_map()

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

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

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

    print('Impossible')

if __name__ == '__main__':
    main()

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

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

Solution (Python):
a,b=map(int,input().split())
print(["P","Imp"][a%3==b%3 and (a%3==1 or a%3==2)]+"ossible")

Solution (Python):
a,b=map(int,input().split())
print(["Possible","Impossible"][a%3==b%3 and (a%3==1 or a%3==2)])

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

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

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7


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


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
A,B = map(int,input().split())
ans = 'Impossible'
ls =[A,B,A+B]
for i in ls:
  if i % 3 == 0:
    ans = 'Possible'
print(ans)

Solution (Python):









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

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

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

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

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

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

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

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

Solution (Python):
def solve():
    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__":
    solve()

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()


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()

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

















import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
import numpy as np
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

Solution (Python):
ary = input().split(" ")
A = int(ary[0])
B = int(ary[1])
 
if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

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

Solution (Python):
A,B = (int(T) for T in input().split())
print(['Impossible','Possible'][any(T%3==0 for T in [A,B,A+B])])

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

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    A, B = map(int, read().split())

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

    return


if __name__ == '__main__':
    main()

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

Solution (Python):
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
a, b = M()
if a%3==0 or b%3==0 or (a+b)%3==0:
    print('Possible')
else:
    print('Impossible')

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

Solution (Python):
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)

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

Solution (Python):
A, B = input().split(" ")

A = int(A)
B = int(B)
C = A + B

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

Solution (Python):

import sys
input=sys.stdin.readline

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()

Solution (Python):
import sys
input = sys.stdin.readline


def main():
    A,B = [int(i) for i in input().strip().split()]

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

if __name__ == "__main__":
    main()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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