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

Solution (Python):


import sys

INF = float('inf')
MOD = 10 ** 9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def II(): return int(sys.stdin.readline())
def SI(): return input()


a, b = LI()
print('Possible' if not all([a % 3, b % 3, (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 = [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())

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

Solution (Python):

def getIntList(): return [int(x) for x in input().split()]
def db(x): 
    global debug
    if debug: print(x)

debug = False
A,B = getIntList()
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 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 =(int(i) for i in input().split())
ans = 'Impossible'
if a%3==0 or b%3 ==0:
 ans = 'Possible'
elif (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):
def main():
  a, b = map(int, input().split())
  if (a+b)%3 == 0:
    print('Possible')
    return
  if a % 3 == 0:
    print('Possible')
    return
  if b % 3 == 0:
    print('Possible')
    return
  
  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=[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','Possible'][a%3==0 or b%3==0 or (a+b)%3==0])

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 + 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("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 = 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())
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 = 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):
def abc067_a():
    a, b = map(int, input().split())
    if a * b * (a + b) % 3 == 0:
        print("Possible")
    else:
        print("Impossible")


abc067_a()

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

Solution (Python):
A,B =map(int,input().split())
count = 0
if A%3==0:
    print("Possible")
    count += 1
if B%3==0:
    if count == 0:
        print("Possible")
        count += 1
if (A+B)%3==0 :
    if count == 0:
        print("Possible")
        count += 1
if count == 0:
    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 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 = [int(_) for _ 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(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):
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):
from statistics import mean, median,variance,stdev
import sys
import math

a = input().split()


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

Solution (Python):



def main():
    """Function."""
    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:
  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=[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):
list=list(map(int,input().split()))
a=list[0]
b=list[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 * (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','Impossible'][(a*b*(a+b))%3>0])

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

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

Solution (Python):
A, B = [ int(i) for i in 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%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=input().strip().split(" ")

b=[int(i) for i in a]

if(b[0]%3==0 or b[1]%3==0 or (b[0]+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 = list(map(int, input().rstrip().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 = list(map(int,input().split()))
if (a[0] * a[1]) %3 == 0:
  print("Possible")
elif (a[0] + a[1]) % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Solution (Python):
A, B = list(map(int, input().strip().split(' ')))
if A%3==0:
  flag=True
elif B%3==0:
  flag=True
elif (A+B)%3==0:
  flag=True
else:
  flag=False
if flag:
  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, 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())
f = lambda x: x % 3 == 0
print('Possible' if f(a) or f(b) or f(a+b) else 'Impossible')

Solution (Python):
A, B = map(int, input().split())
print('Possible' if len(list(filter(lambda x: x % 3 == 0, [A, B, A+B]))) > 0 else '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):
f=lambda x:x%3==0
a,b=map(int,input().split())
print(['Impossible','Possible'][f(a)or f(b)or f(a+b)])

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

print("Possible" if any(map(lambda x: x%3 == 0, (a, b, a+b))) 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(["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):
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())
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())
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 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 not a % 3 or not b % 3 or not (a + b) % 3 else "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())
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):
a, b = list(map(int, input().split()))
if a*b%3 ==0 or (a+b)%3 ==0:
  print('Possible')
else:
  print('Impossible')

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

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

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

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

Solution (Python):
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


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

print("Possible" if A%3==0 else "Possible" if B%3==0 else "Possible" if (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):
print(["P","Imp"][eval(input().replace(' ','*'))%3%2]+"ossible")

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

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

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 = 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):
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):
a,b = (int(_) for _ 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 = 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):
import sys
import math
import collections
import itertools
import array
import inspect


sys.setrecursionlimit(1000000)



def chkprint(*args):
    names = {
        id(v): k
        for k, v in inspect.currentframe().f_back.f_locals.items()
    }
    print(', '.join(
        names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))



def to_bin(x):
    return bin(x)[2:]


def li_input():
    return [int(_) for _ in input().split()]


def gcd(n, m):
    if n % m == 0:
        return m
    else:
        return gcd(m, n % m)


def gcd_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = gcd(v, L[i])

    return v


def lcm(n, m):
    return (n * m) // gcd(n, m)


def lcm_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = lcm(v, L[i])

    return v



def wfs_d(D, N, K):
    """
    D: 隣接行列(距離付き)
    N: ノード数
    K: 始点ノード
    """

    dfk = [-1] * (N + 1)
    dfk[K] = 0

    cps = [(K, 0)]
    r = [False] * (N + 1)
    r[K] = True
    while len(cps) != 0:
        n_cps = []
        for cp, cd in cps:
            for i, dfcp in enumerate(D[cp]):
                if dfcp != -1 and not r[i]:
                    dfk[i] = cd + dfcp
                    n_cps.append((i, cd + dfcp))
                    r[i] = True

        cps = n_cps[:]

    return dfk



def dfs_d(v, pre, dist):
    """
    v:  現在のノード
    pre: １つ前のノード
    dist: 現在の距離

    以下は別途用意する
    D: 隣接リスト(行列ではない)
    D_dfs_d: dfs_d関数で用いる，始点ノードから見た距離リスト
    """

    global D
    global D_dfs_d

    D_dfs_d[v] = dist

    for next_v, d in D[v]:
        if next_v != pre:
            dfs_d(next_v, v, dist + d)

    return




dp = None


def main():
    A, B = li_input()

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


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

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:
    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())
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 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, 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, raw_input().split())
print ['Impossible', 'Possible'][a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0]

Solution (Python):
a, b = map(int, raw_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) == 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 and b % 3 != 0 and (a + b) % 3 != 0:
  print("Impossible")
else:
  print("Possible")

Solution (Python):


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

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

if __name__ == '__main__':
    main()

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

Solution (Python):
from collections import defaultdict
import sys,heapq,bisect,math,itertools,string,queue
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
AtoZ = [chr(i) for i in range(65,65+26)]
atoz = [chr(i) for i in range(97,97+26)]

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

A,B = inpl()

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

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

Solution (Python):
num,numtwo = map(int,input().split())

if num % 3 == 0 or numtwo % 3 == 0 or (num + numtwo) % 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):

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

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

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):
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:
    if a != 0 and b != 0:
        print("Possible")
    else:
        print("Impossible")
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())
flag = 0
for i in [a,b,a+b]:
    if i % 3 == 0:
        flag = 1
        break
if flag:
    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(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,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("Possible" if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0 else "Impossible")