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+b)%3==0 or a%3==0 or b%3==0 else 'Impossible')

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



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

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

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

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

if sum((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());print(["Impossible","Possible",][bool(A%3 is 0 or B%3 is 0 or (A+B)%3 is 0)])

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("Impossible" if a*b*(a+b)%3 else "Possible")

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

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 + b) % 3 == 0 or a % 3 == 0 or b % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Solution (Python):
a,b=[int(i) for i in input().split()]
t3=lambda x:x%3==0
print("Possible" if any(list(map(t3,[a,b,a+b]))) 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):
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):
ina,inb = list(map(int,input().split()))
if ina%3 == 0:
  print("Possible")
elif inb%3 == 0:
  print("Possible")
elif (ina+inb)%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 min([i%3 for i in [a,b,a+b]])==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())
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())
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 any([a/3==int(a/3), b/3==int(b/3), (a+b)/3==int((a+b)/3)]) 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 (a+b)%3==0 or  b%3==0 : print('Possible')
else: print('Impossible')

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

if N[0]%3==0 or N[1]%3==0 or (sum(N))%3==0:
    print("Possible")
else:
    print("Impossible")

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 = list(map(int,input().split()))

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

Solution (Python):
A, B = map(int, input().split())
A_rest = A%3
B_rest = B%3
AB_rest = (A+B)%3

if (A_rest)*(B_rest)*(AB_rest)==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):
n, m = list(map(int, input().split()))
print('Impossible' if n%3 and m%3 and (n+m)%3 else 'Possible')

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:
    print("Possible")
elif B%3==0:
    print("Possible")
elif (A+B)%3==0:
    print("Possible")
else :
    print("Impossible")

Solution (Python):
import math
import sys

def getinputdata():

    
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][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 % 3 == 0:
    result = "Possible"
elif b % 3 == 0:
    result = "Possible"
else:
    if (a+b) % 3 == 0:
        result = "Possible"
    else:
        result = "Impossible"
print(result)

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

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

Solution (Python):





if __name__ == '__main__':
    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=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 and B%3 > 0 and (A+B)%3 > 0:
  print('Impossible')
else:
  print('Possible')

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%3 and b%3 and (a+b)%3:
    print('Impossible')
else:
    print('Possible')

Solution (Python):
a,b=map(int,input().split())
print(('im'*((a%3 and b%3 and (a+b)%3)>0)+'possible').capitalize())

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())
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())
c=a+b
if a%3==0 or b%3==0 or 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())
C=A+B
if(A%3==0):
  print("Possible")
elif(B%3==0):
  print("Possible")
elif(C%3==0):
  print("Possible")
else:
  print("Impossible")

Solution (Python):
a, b = (int(i) for i in input().split())
print("Possible" if (a+b)%3==0 or a%3==0 or 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):
x,y=map(int,input().split())
a=x+y
if x%3==0 or y%3==0 or a%3==0:
    print("Possible")
else:
    print("Impossible")

Solution (Python):
a,b=input().split()
a,b=int(a),int(b)
x=a+b
if a%3==0 or b%3==0 or x%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=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()]
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+b)%3 == 0 or a%3==0 or b%3==0:
  print('Possible')
else:
  print('Impossible')

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

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

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

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 = input().split(" ")
a = int(a)
b = int(b)
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());print(['Impossible','Possible'][(A%3==0)or(B%3==0)or((A+B)%3==0)])

Solution (Python):
a,b = map(int,input().split())
ans = 'Possible'
if a%3!=0 and b%3!=0 and (a+b)%3!=0:
    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):
a, b = map(int, input().split())
l = list(map(lambda x: x % 3, [a, b, a+b]))
if 0 in l:
    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 = 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):
num = [int(x) for x in input().split()]
if num[0] %3 == 0 or num[1] % 3 == 0 or (num[0]+num[1]) %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=list( 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")

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):
m,d = [ int(i) for i in input().split()]

if m%3==0 or d%3==0 or (m+d)%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, raw_input().split())
print "Possible" if min(A%3, B%3, (A + B)%3) == 0 else "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):
if __name__ == "__main__":
    a,b = map(int, input().split())
    if a >= 3 and a % 3 == 0:
        print ("Possible")
        exit()
    if b >= 3 and b % 3 == 0:
        print ("Possible")
        exit()
    if (a + b) >= 3 and (a + b) % 3 == 0:
        print ("Possible")
        exit()
    print ("Impossible")

Solution (Python):



l = map(int, raw_input().split())
A = l[0]
B = l[1]

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

Solution (Python):
x = input().split(" ")
a = int(x[0])
b = int(x[1])

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 = map(int, raw_input().split())


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

Solution (Python):
A= (input().split())
if int(A[0]) % 3 == 0 or int(A[1]) % 3 == 0 or (int(A[0]) + int(A[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 = [int(n) for n 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, raw_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('Impossible' if A % 3 and B % 3 and (A + B) % 3 else 'Possible')

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

ok = (A % 3 == 0) or (B % 3 == 0) or ((A + B) % 3 == 0)

if ok:
    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):

"""
http://abc067.contest.atcoder.jp/tasks/abc067_a

"""
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:])

Solution (Python):
import math 
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 = [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')

Solution (Python):
from collections import defaultdict
from itertools import product, groupby
from math import pi
from collections import deque
from bisect import bisect, bisect_left, bisect_right
INF = 10 ** 10


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


if __name__ == '__main__':
    main()

Solution (Python):
a,b=map(int,input().split())
print("Possible"if (a%3)*(b%3)*((a+b)%3)==0 else "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 = [int(x) for x in 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:
    print('Possible')
elif B % 3 == 0:
    print('Possible')
elif (A + B) % 3 == 0:
    print('Possible')
else:
    print('Impossible')

Solution (Python):
x,y = map(int,input().split())
z = x+y
print('Possible' if x%3==0 or y%3==0 or z%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):
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()

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):
A, B =map(int,input().split())
C = A*B*(A+B)
if 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 = list(map(int, input().split()))

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

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

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

if int(b[0]) % 3 == 0:
  print("Possible")
elif int(b[1]) % 3 == 0:
  print("Possible")
elif (int(b[0]) + int(b[1])) % 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())
c = a+b
if a%3==0 or b%3==0 or c%3==0:
    print("Possible")
else:
    print("Impossible")

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

else:
    print("Impossible")

Solution (Python):
def Q1(x):
    A, B = x[0], x[1]
    if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
        return 'Possible'
    else:
        return 'Impossible'

l = [int(i) for i in input().split()]
print(Q1(l))

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):
t = raw_input().split()
a = int(t[0])
b = int(t[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 % 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().strip().split())
e = x%3==0 or y%3==0 or (x+y)%3==0
print("Possible" if e else "Impossible")

Solution (Python):
a,b=raw_input('').split()
a=int(a)
b=int(b)

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

Solution (Python):
input_line1 = map(int,raw_input().split(" "))

a = input_line1[0]
b = input_line1[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 % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

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 = raw_input()
a_b = a_b.split()
a = a_b[0]
b = a_b[1]
a = int(a)
b = int(b)

status = 0

if a % 3 == 0:
    status = 1
elif b % 3 == 0:
    status = 1
elif (a + b) % 3 == 0:
    status = 1

if status == 0:
    print "Impossible"
else:
    print "Possible"

Solution (Python):


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

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


if __name__ == "__main__":
	sharing_cookies()

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):
m, n = map(int, input().split())
ans = (m + n) % 3
ans2 = m % 3
ans3 = n % 3
if ans == 0 or ans2 == 0 or ans3 == 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 = 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=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")

Solution (Python):
a = input().split(' ')
b = list(map((int), a))
sum = sum(b)
A = b[0]
B = b[1]

if sum % 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):



raw = raw_input()
A = int(raw.split()[0])
B = int(raw.split()[1])

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

Solution (Python):
(A,B) = tuple(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) and (a+b) > 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:
    print("Possible")
elif a%3 == 0:
    print("Possible")
elif b%3 == 0:
    print("Possible")
else:
    print("Impossible")

Solution (Python):



import sys

input_line = sys.stdin.readline()

line = input_line.split(' ')
a = int(line[0])
b = int(line[1])
c = a + b

if c > 2 and c % 3 == 0:
	print('Possible')
elif a > 2 and a % 3 == 0:
	print('Possible')
elif b > 2 and 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 = 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 = 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()))
if A % 3 == 0 or B % 3 == 0 or (A+B) % 3 == 0:
	print("Possible")
else:
	print("Impossible")

Solution (Python):
a,b = raw_input().split(" ")
A = int(a)
B = int(b)

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):
N, M = map(int, raw_input().split())
if (N+M) % 3 == 0:
	print  "Possible"

elif (N) % 3 == 0:
	print  "Possible"

elif (M) % 3 == 0:
	print  "Possible"

else:
	print "Impossible"

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

jud=False

if a%3==0:
    jud=True
elif b%3==0:
    jud=True
elif (a+b)%3==0:
    jud=True
else:
    jud=False

if jud==True:
    print("Possible")
else:
    print("Impossible")

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

Solution (Python):
a, b = map(int, input().split())
print("Possible" if (a+b)%3==0 or a%3==0 or 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 = [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')

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

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

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):
i = input().split()
a = int(i[0])
b = int(i[1])

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

Solution (Python):
a, b = map(int, raw_input().split())
if any([x % 3 == 0 for x in [a, b, a+b]]):
    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=[int(i) for i in raw_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(i) for i 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())
print("Possible" if A%3==0 or B%3==0 or (A+B)%3==0 else "Impossible")

Solution (Python):
print((lambda a, b: (not a%3 or not b%3 or not (a + b) % 3) and "Possible" or "Impossible")(*map(int, input().split())))

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, raw_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 = list(map(int ,input().split()))
if(A%3 !=0 and B%3 != 0 and (A+B) %3 != 0):
    print("Impossible")
else:
    print("Possible")

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

mainA()

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):
m, n = map(int, input().split())
ans = (m + n) % 3
ans2 = m % 3
ans3 = n % 3
if ans == 0 or ans2 == 0 or ans3 == 0:
    print("Possible")
else:
    print("Impossible")

Solution (Python):
A, B = map(int, raw_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, raw_input().split())
if a%3 == 0 or b%3 == 0 or (a+b)%3 == 0:
    print 'Possible'
else:
    print 'Impossible'