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.



Sample input:
4 5


Sample output:
Possible

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if a % 3 and b % 3 and c % 3:
    print("Impossible")
else:
    print("Possible")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
print(['Imp','P'][A%3==0 or B%3==0 or (A+B)%3==0]+'ossible')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC067A
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")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding:utf-8

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
print(["P","Imp"][eval(input().replace(" ","*"))%3%2]+"ossible")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

else:
    print("Impossible")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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!')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B = map(int, input().strip().split(' '))
for c in [A,B,A+B]:
  if c % 3 == 0:
    print('Possible')
    exit()
print('Impossible')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print(('P','Imp')[all(i%3 for i in (a,b,a+b))]+'ossible')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
print("Possible" if any(v % 3 is 0 for v in (A, B, A + B)) else "Impossible")

Submission status: Accepted

Solution code:
N, K = map(int, input().split())
print("Possible" if N*K*(N+K)%3==0 else "Impossible")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
L,R = map(int,input().split())
if (L%3 == 0 or R%3 == 0 or (L+R)%3 == 0):
  print("Possible")
else:
  print("Impossible")

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
(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")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print('Impossible' if all([a%3,b%3,(a+b)%3]) else 'Possible')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print("Possible" if any([a%3==0,b%3==0,(a+b)%3==0]) else "Impossible")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
ans = 'Possible' if any(x % 3 == 0for x in (a, b, a + b)) else 'Impossible'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if any([x % 3 == 0 for x in [A, B, A+B]]):
    print('Possible')
else:
    print('Impossible')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
INF = float("inf")


def yes():
    print("Possible")  # type: str


def no():
    print("Impossible")  # type: str


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))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

if A % 3 and B % 3 and (A + B) % 3:
    print("Impossible")
else:
    print("Possible")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(["P","Imp"][eval(input().replace(' ','*'))%3%2]+"ossible")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#67

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = list(map(int,input().split()))
if any([a%3==0,b%3==0,(a+b)%3==0 ]):
  print("Possible")
else:
  print("Impossible")

Submission status: Accepted

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

Submission status: Accepted

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