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())
if a%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 read_input():
    a, b = map(int, input().split())

    return a, b


def submit():
    a, b = read_input()

    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__':
    submit()

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:
  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):
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

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

solve()

Solution (Python):
a,b=map(int,input().split())
if a%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("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())

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

Solution (Python):

import copy
import random
import bisect 
import fractions 
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=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 = (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=map(int,input().split())
print(["Impossible","Possible"][a*b%3==0 or (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().split())
if A % 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
if a % 3 == 0:
  ans += 1
elif b % 3 == 0:
  ans +=1
elif (a + b) % 3 == 0:
  ans += 1

if ans > 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):
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


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


def inlf():
    return list(map(float, input().split()))


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


def inpm(line):
    return [inp() for _ in range(line)]


def inpfm(line):
    return [inpf() for _ in range(line)]


def inpsm(line):
    return [inps() for _ in range(line)]


def inlm(line):
    return [inl() for _ in range(line)]


def inlfm(line):
    return [inlf() for _ in range(line)]


def inlsm(line):
    return [inls() for _ in range(line)]


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper


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

Solution (Python):
from functools import reduce
import math

def main():
    
    
    
    

    
    
    
    
    
    

    
    

    
    
    
    
    
    
    
    
    
    INF = float("inf")

    
    MOD = 10**9+7
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    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')
    
if __name__ == '__main__':
    main()

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 = 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*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 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 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 = 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())
if a%3==0 or b%3==0 or (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, input().split())

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

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

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

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

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

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

Solution (Python):
a, b = [int(item) for item 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","Impossible"][bool(A*B*(A+B)%3)])

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())
if a % 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"][not(A % 3 == 0 or B % 3 == 0 or (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().split())
print("Possible" if a%3==0 or b%3==0 or (a+b)%3==0 else "Impossible")

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

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

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

Solution (Python):
A,B = map(int, input().split())
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:
    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%3 == 0 or B%3 == 0 or (A+B)%3==0 else 'Impossible')

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

Solution (Python):
x,y=map(int,input().split());print(['P','Imp'][all([x%3>0,y%3>0,(x+y)%3>0])]+'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):
ans='Impossible'
a,b=map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
  ans='Possible'
print(ans)

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

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

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

Solution (Python):
import sys

def main():
    input = sys.stdin.readline
    A, B = map(int, input().split())

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


if __name__ == '__main__':
    print(main())

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

if A%3 * B%3 * (A+B)%3 == 0:
  result = "Possible"
else:
  result = "Impossible"

print(result)

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

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

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007


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



"""
n = I()
a = LI()
b = [None for i in range(n-1)]
for i in range(n-1):
    a[i+1] += a[i]
for i in range(n-1):
    b[i] = abs(2*a[i]-a[n-1])
print(min(b))
"""


"""
n = I()
v = [[] for i in range(n)]
for i in range(n-1):
    a,b = LI()
    a -= 1
    b -= 1
    v[a].append(b)
    v[b].append(a)
d_f = [-1 for i in range(n)]
q = deque()
q.append(0)
d_f[0] = 0
while q:
    x = q.pop()
    for y in v[x]:
        if d_f[y] == -1:
            d_f[y] = d_f[x] + 1
            q.append(y)
d_s = [-1 for i in range(n)]
q.append(n-1)
d_s[n-1] = 0
while q:
    x = q.pop()
    for y in v[x]:
        if d_s[y] == -1:
            d_s[y] = d_s[x] + 1
            q.append(y)
f = 0
s = 0
for i in range(n):
    if d_f[i] <= d_s[i]:
        f += 1
    else:
        s += 1
if f > s:
    print("Fennec")
else:
    print("Snuke")
"""

Solution (Python):
a,b=map(int,input().split())
if a%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 = 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):
def Check(n):
    return n%3==0
a,b=map(int,input().split())
print('Possible' if Check(a) or Check(b) or Check(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):
def sharing_cookies(A: int, B: int)->bool:
    return A % 3 == 0 or B % 3 == 0 or (A+B) % 3 == 0


if __name__ == "__main__":
    A, B = map(int, input().split())
    yes = sharing_cookies(A, B)
    print('Possible' if yes else 'Impossible')

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

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())
if A % 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*b*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):
a,b=map(int,input().split());print('IPmopsossisbilbel e'[0 in[(a+b)%3,a%3,b%3]::2])

Solution (Python):
A,B=map(int,input().split())
num=(A*B*(A+B))%3
if num==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())
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())

AB = A + B
if A % 3 == 0 or B % 3 == 0 or AB % 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" 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 + 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=(int(x) for x in input().split())

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

Solution (Python):

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

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

Solution (Python):
def func(a, b):
    result = 'Possible' if (a + b) % 3 == 0 or a % 3 == 0 or b % 3 == 0 else 'Impossible'
    return result

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

print(func(A, B))

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 = map(int, input().split())
if A % 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 = [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:
    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())
a,b,c = a%3,b%3,(a+b)%3
if a == 0 or b == 0 or c == 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 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())
for x in [A,B,A+B]:
  if x%3==0:
    print("Possible")
    break
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())
if (a%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(["Imp","P"][any([(a+b)%3==0,a%3==0,b%3==0])]+"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):
from sys import stdin
a, b = [int(x) for x in stdin.readline().rstrip().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=map(int,input().split())
if A%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'][a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0])

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

Solution (Python):
s=input().split()
if(int(s[0])%3==0):
    print("Possible")
elif(int(s[1])%3==0):
    print("Possible")
elif((int(s[0])+int(s[1]))%3==0):
    print("Possible")
else:
    print("Impossible")

Solution (Python):
a,b=map(int,input().split())
if not (a%3 and b%3 and (a+b)%3):
  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 print("Impossible")

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

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

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

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

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

if (a*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())
if A % 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() ]

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

print("Possible" if ans else "Impossible")
print()

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())
k = a%3
s = b%3
if k == s and k != 0:
  print("Impossible")
else:
  print("Possible")

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())
if a%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())
li = [A%3,B%3,(A+B)%3]
if 0 in li: 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, 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=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):
ab = list(map(int, input().split()))
if ab[0]%3 == 0 or ab[1]%3 == 0 or (ab[0]+ab[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):
x , y = map(int,input().split())
if x % 3 == 0 or y % 3 == 0 or (x+y) % 3 ==0:
    print("Possible")
else:
    print("Impossible")

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

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

Solution (Python):
int_a, int_b = map(int, input().split())

if (int_a + int_b) % 3 == 0 or int_a % 3 == 0 or int_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 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+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 % 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 = list(map(int, input().split()))

if A*B*(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")