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

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

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())
c = a + b

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

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    a, b = list(map(int, input().rstrip('\n').split()))
    if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0:
        print("Possible")
    else:
        print("Impossible")


if __name__ == '__main__':
    slove()

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

if cookie_1 % 3 == 0:
   print( "Possible")
elif cookie_2 % 3 == 0:
   print( "Possible")
elif ((cookie_1 + cookie_2) % 3 == 0):
   print( "Possible")
else :
   print( "Impossible")

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 = 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%3!=0 and b%3!=0 and (a+b)%3!=0 else 'Possible')

Solution (Python):
import sys

input = sys.stdin.readline


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 = list(map(int, input().split()))
if a[0] % 3 == 0 or a[1] % 3 == 0 or sum(a[:2]) % 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')
  exit()
if b%3 == 0:
  print('Possible')
  exit()
if (a+b)%3 == 0:
  print('Possible')
  exit()

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):
  ans = "Possible"
else :
  ans = "Impossible"
print(ans)

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

Solution (Python):


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

isPossible = False

if a%3 == 0:
    isPossible = True
if b%3 == 0:
    isPossible = True
if (a+b)%3 == 0:
    isPossible = True

if isPossible:
    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):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b=INTM()
    if a%3==0 or b%3==0 or (a+b)%3==0:
        print('Possible')
    else:
        print('Impossible')
if __name__ == '__main__':
    do()

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=list(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%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 any((a%3==0, b%3==0, (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 and B%3 != 0 and (A+B)%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):
a, b = map(int, input().split())
data = [a, b, a+b]
flag = 'Impossible'
for d in data:
    if d % 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 = 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) * (b % 3) * ((a+b) % 3) == 0:
  print("Possible")
else:
  print("Impossible")

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

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

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


if __name__ == "__main__":
    resolve()

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

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

Solution (Python):
A, B = input().split()
A, B = int(A), int(B)
n = int(A) + 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%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):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
   
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):
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 = list(map(int, input().split()))
if A[0]%3 ==0 or A[1]%3 == 0 or (A[0] +A[1])%3 ==0:
  print('Possible')
  exit()
print('Impossible')

Solution (Python):
A,B=map(int,input().split());print("PIomspsoisbslieb l e"[all([A%3,B%3,(A+B)%3])::2])

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

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

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
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):
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())
ans='Possible'
if a%3!=0:
  if b%3!=0:
    if (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 = [int(_) for _ in input().split()]
if all(1 <= item <= 100 for item in a):
    print('Possible' if 0 == a[0] % 3 or 0 == a[1] % 3 or 0 == (a[0]+a[1]) % 3 else 'Impossible')
else:
    print('hoge!')

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

Solution (Python):
import sys
import copy
import  math
import bisect
from collections import *
from operator import itemgetter
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

a, b = na()
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*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())
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 = list(map(int, input().split()))
a = A % 3 == 0
b = B % 3 == 0
c = (A + B) % 3 == 0
if a or b or c:
    print("Possible")
else:
    print("Impossible")

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

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().strip().split(' '))
for c in [A,B,A+B]:
  if c % 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())
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('Impossible' if a%3 and b%3 and (a+b)%3 else'Possible')

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

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

Solution (Python):
a, b = map(int, input().split())
sign = a % 3 == 0 or b % 3 == 0 or (a+b) % 3 == 0
print("Possible" if sign 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):
def main():
    A, B = map(int, input().split())
    if A % 3 == 0 or B % 3 == 0 or (A+B) % 3 == 0:
        return "Possible"
    return "Impossible"

if __name__ == '__main__':
    print(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(('P','Imp')[all(i%3 for i in (a,b,a+b))]+'ossible')

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+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+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*(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())
print("Possible" if any(v % 3 is 0 for v in (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):
N, K = map(int, input().split())
print("Possible" if N*K*(N+K)%3==0 else "Impossible")

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

resolve()

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%3)*(b%3)*((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):
L,R = map(int,input().split())
if (L%3 == 0 or R%3 == 0 or (L+R)%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:
        print("Possible")
        return

    if b % 3 == 0:
        print("Possible")
        return

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

    print("Impossible")


if __name__ == '__main__':
    main()

Solution (Python):



import sys
input = sys.stdin.readline


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

    if a % 3 == 0:
        print("Possible")
        return

    if b % 3 == 0:
        print("Possible")
        return

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

    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) = (int(tok) for tok in input().split())
print("Possible" if any(s % 3 == 0 for s in [a, b, a + b]) else "Impossible")

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


sol()

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 = list(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 else "Possible" if B%3==0 else "Possible" if (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())
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==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):
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())
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):
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")
    
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())
Ans = 0

N = A % 3
if N==0:
  Ans = 1
  
N = B % 3
if N==0:
  Ans = 1

N = (A+B) % 3
if N==0:
  Ans = 1

if Ans==1:
  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()]

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