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 any([x % 3 == 0 for x in [A, B, A+B]]):
    print('Possible')
else:
    print('Impossible')

Solution (Python):

import sys
INF = float("inf")


def yes():
    print("Possible")  


def no():
    print("Impossible")  


def solve(A: int, B: int):
    if A % 3 == 0 or B % 3 == 0 or (A+B) % 3 == 0:
        yes()
    else:
        no()
    return


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

Solution (Python):
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().rstrip().split())

if A%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()]
if (a%3==1 and b%3==1) or (a%3==2 and b%3==2):
  print('Impossible')
else:
  print('Possible')

Solution (Python):
num = input().split()
if int(num[0])%3==0 or int(num[1])%3==0 or (int(num[0])+int(num[1]))%3==0:
  print('Possible')
else:
  print('Impossible')

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

Solution (Python):
A, B = 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 = list(map(int,input().split()))
if any([a%3==0,b%3==0,(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):

import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math
import itertools
 




 
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    A,B = inputMap()
    
    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(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())
ans = 'Impossible'
if a%3 == 0 or b%3 == 0 or (a+b)%3 == 0:
    ans = 'Possible'
print(ans)

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

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

Solution (Python):

A,B = [int(i) for i in input().split()]

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

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

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

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

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

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

Solution (Python):
A,B = 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())
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) | (b%3 == 0) | ((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())
ans = 'Impossible'
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())
if a % 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):
a,b = map(int,input().split())

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

Solution (Python):
n, m = map(int, input().split())

if (n % 3 == 0 or m % 3 == 0 or (n+m) % 3 ==0):
  print('Possible')
else:
  print('Impossible')

Solution (Python):



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


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


print(ans)

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):
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

l = LIST()
l.append(sum(l))
for c in l:
    if c % 3 == 0:
        print("Possible")
        os.sys.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())

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

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')


def A():
    a, b = LI()
    if not (a % 3 and b % 3 and (a + b) % 3):
        print("Possible")
    else:
        print("Impossible")
    return


def B():
    return


def C():
    return


def D():
    return


def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == '__main__':
    A()

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

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

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

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

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

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

Solution (Python):



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




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

Solution (Python):
a, b = map(int, input().split())
s = list(map(lambda x: x%3, [a,b,a+b]))
if s.count(0) >= 1:
    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):
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

A, B = nl()

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

Solution (Python):

import sys

YES = "Possible"  
NO = "Impossible"  


def solve(A: int, B: int):
    if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
        print(YES)
    else:
        print(NO)

    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)


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=map(int,input().split())
if a%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(ele) for ele in input().split()]


def main():
    ans = "Possible"
    print(ans if solve() else "Impossible")


def solve():
    if A % 3 == 0 or B % 3 == 0 or (A+B) % 3 == 0:
        return True

    return False


if __name__ == "__main__":
    main()

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

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

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

Solution (Python):

import sys

YES = "Possible"  
NO = "Impossible"  

def solve(A: int, B: int):
    if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
        ret = YES
    else:
        ret = NO
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)

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+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):
def abc():
    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')


abc()

Solution (Python):
def abc():
    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')


abc()

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())
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 = [int(s) for s in input().split()]
print('Possible' if list(filter(lambda n: n % 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())
if a%3==0 or b%3==0 or (a+b)%3==0:
  print("Possible")
else:print("Impossible")

Solution (Python):
a,b = map(int,input().split())
bl = False
for x in [a,b,a+b]:
  if x%3 == 0:
    bl = True

print('Possible' if bl 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 = [int(x) for x in 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())
if a%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 or a % 3 == 0 or b % 3 ==0:
  print('Possible')
else:
  print('Impossible')

Solution (Python):
a,b = map(int,input().split())
print("Impossible" if (a%3*b%3==1 or a%3*b%3==4) 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 = [ int(v) for v 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):

import sys
input = sys.stdin.readline

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):


import itertools
from collections import Counter
from collections import defaultdict
import bisect

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):
b, c = map(int, input().split())
if(b%3==0 or c%3==0 or (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())
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 any(c % 3 == 0 for c in [A, B, A + B]):
    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):
import sys


def input():
    return sys.stdin.readline()[:-1]








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 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(" "))
print("Impossible" if A*B*(A+B)%3 else "Possible")

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

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

Solution (Python):
a, b = map(int, input().split())
flag = False
if a % 3 == 0 :
    flag = True
elif b % 3 == 0 :
    flag = True
elif (a+b) % 3 == 0 :
    flag = True
if flag == True :
    print("Possible\n")
else :
    print("Impossible\n")

Solution (Python):
A,B=map(int,input().split());print(("Possible","Impossible")[min([A%3,B%3,(A+B)%3])])

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())
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('PIomspsoisbslieb l e'[list(map(lambda x:x%3,[a,b,a+b])).count(0)==0::2])

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+B)%3 == 0 or A%3 == 0 or B%3 == 0 else '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')