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


import re

a, b = map(int, re.split('\s', raw_input()))

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

Solution (Python):
arr = raw_input().split(' ')
a = int(arr[0])
b = int(arr[1])
ab = a+b

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

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()


def main():
    a,b = LI()
    if min(a % 3, b%3, (a+b)%3) == 0:
        return 'Possible'

    return 'Impossible'


print(main())

Solution (Python):
from sys import stdin
a,b = map(int,stdin.readline().split())
ans = 'Impossible'
c = a+b
x = [a,b,c]
def ch(n):
 if n==0:
  return 0
 if n%3:
  return 0
 return 1
for i in x:
 if ch(i):
  ans = 'Possible'
print ans

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):
if __name__ == '__main__':
    lis = list(map(int, input().split()))
    A = lis[0]
    B = lis[1]
    
    if (A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0):
        print("Possible")
    else:
        print("Impossible")

Solution (Python):
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(a): return "".join(list(map(str, a)))
 
a,b = rli()
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):
n,m=map(int,raw_input().split())
print "Possible" if n%3==0 or m %3==0 or (n+m)%3==0 else "Impossible"

Solution (Python):
cookies = input().split(' ')
a, b = (int(cookies[0]), int(cookies[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,raw_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())
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):



from collections import defaultdict
from math import factorial as f
from fractions import gcd as g

a, b = [int (i) % 3 for i in raw_input ().split ()]
if a: a = (a + b) % 3
if a: a = b
print ["Possible", "Impossible"][a != 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=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")

Solution (Python):
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(a): return "".join(list(map(str, a)))

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

Solution (Python):
ans = ['Possible', 'Impossible']

def judge(a, b):
	if a % 3 == 0:
		return 0
	elif b % 3 == 0:
		return 0
	elif (a + b) % 3 == 0:
		return 0
	return 1

inpt = map(int, raw_input().split())
print ans[judge(inpt[0], inpt[1])]

Solution (Python):

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




ans = "Impossible"
if a % 3 == 0:
	ans = "Possible"

if b % 3 == 0:
	ans = "Possible"

if (a+b) % 3 == 0:
	ans = "Possible"

print(ans)

Solution (Python):
def solution(a, b):
    total = a + b
    if total % 3 == 0:
        print('Possible')
    elif a % 3 == 0:
        print('Possible')
    elif b % 3 == 0:
        print('Possible')
    else:
        print('Impossible')

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

solution(A, B)

Solution (Python):
def read(): return list(map(int, input().split()))


a, b = read()
print("Impossible" if a % 3 and b % 3 and (a + b) % 3 else "Possible")

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

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>0]+"ossible")

Solution (Python):
N = raw_input().split()

ans = ""

for i in range(2):
    if int(N[i]) % 3 == 0:
       ans = "Possible"

if int((N[0] + N[1])) % 3 == 0 :
    ans = "Possible"

if ans == "Possible":
    print ans
else:
    print "Impossible"

Solution (Python):
import sys




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


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


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


def read_str():
    return input()


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

Solution (Python):
c= [int (i) for i in input().split()]
if sum(c)%3==0 or c[0]%3==0 or c[1]%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, raw_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=list(map(int, input().split()))


mod = lambda x: x%3
l = list(map(mod, [A, B, A+B]))
if 0 in l:
    print("Possible")
else:
    print("Impossible")

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

Solution (Python):
sh = 3
a, b = map(int, input().split())
ab = a+b
if a % sh == 0 or b % sh == 0 or ab % sh == 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):
str_cookies_num = input()
cookies_num = str_cookies_num.split()
cookies_A = int(cookies_num[0])
cookies_B = int(cookies_num[1])

if (cookies_A + cookies_B) % 3 == 0:
    print("Possible")
elif cookies_A % 3 == 0:
    print("Possible")
elif cookies_B % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Solution (Python):
l = list(map(int, input().split()))
a = l[0]+l[1]

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

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 = input().split()

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

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 = tuple(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):
def main():
    A, B = list(map(int, 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())
c=a+b

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

Solution (Python):









A = input().split()

x = int(A[0])
y = int(A[1])

if x % 3 ==0:
    print("Possible")

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

Solution (Python):


import sys

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

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

Solution (Python):
l=[int(i) for i in input().split()]
if (l[0]%3)==0 or (l[1]%3)==0 or (l[0]+l[1])%3==0:
  print ("Possible")
else:
  print ("Impossible")

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

def check(a, b):
    if a % 3 == 0:
        return 1
    elif b % 3 == 0:
        return 1
    elif (a + b) % 3 == 0:
        return 1
    else:
        return 0

def main():
    if check(a, b) == 1:
        print("Possible")
    else:
        print("Impossible")

main()

Solution (Python):

import sys

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

C = A + B

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

Solution (Python):
ab = input().split(' ')

if int(ab[0])  % 3 == 0 or int(ab[1]) % 3 ==0   or (int(ab[1])+ int(ab[0])) % 3 == 0:
    ans  = 'Possible'

else:
    ans ='Impossible'
    
if (int(ab[0]) + int(ab[1])) <= 3:
    ans= 'Impossible'
print (ans)

Solution (Python):

a,b = map(int, raw_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):
if __name__=='__main__':
    in_src = input()
    in_str = in_src.split(' ')
    in_num = []
    for i in in_str:
        in_num.append(int(i))
    if in_num[0]%3==0:
        print('Possible')
    elif in_num[1]%3==0:
        print('Possible')
    elif (in_num[0]+in_num[1])%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(i) for i in input().split()]
if (A+B)%3 == 0 or A%3 == 0 or 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):


 
x=input()
a=int(x.split(" ")[0])
b=int(x.split(" ")[1])
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):
if(__name__ == "__main__"):
    a, b =[int(i) for i in input().split()]
    
    if(a > 0 and b > 0):
        if((a+b) % 3 == 0 or a % 3 == 0 or b % 3 == 0):
            print("Possible")
        else:
            print("Impossible")
    else:
        print("Impossible")

Solution (Python):
c, d = map(int, input().split())
ans = 0

if(c % 3 == 0) :
    ans = 1
elif(d % 3 == 0) :
    ans = 1
elif((c + d) % 3 == 0) :
    ans = 1

if (ans == 1) :
    print ('Possible')
else :
    print ('Impossible')

Solution (Python):

a, b = map(int, raw_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:
  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):
def main():
    A, B = map(int, input().split())

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

main()

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

Solution (Python):


A, B = tuple(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,raw_input().split())
ans='Impossible'
if A%3==0:
    ans='Possible'
if B%3==0:
    ans='Possible'
if (A+B)%3==0:
    ans='Possible'

print ans

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

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


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):
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 is 0 or B%3 is 0 or (A+B)%3 is 0:
    print('Possible')
else:
    print('Impossible')

Solution (Python):
num = input().split()
A = int(num[0])
B = int(num[1])
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 a % 3 == 0:
    print "Possible"
elif b % 3 == 0:
    print  "Possible"
elif (a + b) % 3 == 0:
    print "Possible"
else:
    print "Impossible"

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

Solution (Python):

def main():
	A, B = list(map(int, input().split()))
	ptrs = [A, B, A + B]
	res = [x % 3 for x in ptrs]
	if 0 in res:
		print("Possible")
	else:
		print("Impossible")

if __name__ == '__main__':
	main()

Solution (Python):


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

if c == 0:
    print('Impossible')
elif (c % 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):
    print("Possible")
elif(B%3==0):
    print("Possible")
elif((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):
b, c = map(int, raw_input().split())

if b%3==0 or c%3==0 or (b+c)%3==0:
  print 'Possible'
else:
  print '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):
import sys

def main():
    line = sys.stdin.readline()
    lst = line.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")

    return 0

if __name__ == '__main__':
    sys.exit(main())

Solution (Python):
nums = [int(x) for x in input().split()]
A,B = nums[0],nums[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 =(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, 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()]

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())
C = A + B

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

Solution (Python):
s = input().split()
s = [int(i) for i in s]
a = s[0]
b = s[1]

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= 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 = 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):
import sys
a, b = map(int, sys.stdin.readline().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 == 0 or b % 3 == 0 or (a + b) % 3 == 0:
    print('Possible')
else:
    print('Impossible')

Solution (Python):

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


def get_ln_int_inputs():
    return list(map(int, get_ln_inputs()))


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


main()