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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:


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

if (c % 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())

for i in [A, B, A + B]:
    if i % 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())
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:
    ans="Possible"
else:
    ans="Impossible"
print(ans)

Submission status: Accepted

Solution code:
# A - Sharing Cookies
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:
lst = input().split()

A = int(lst[0])
B = int(lst[1])

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())
C=A+B
if ((A>=3)&(A%3==0)) | ((B>=3)&(B%3==0)) | ((C>=3)&(C%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:
# 067_a
A,B=map(int,input().split())
if (1<=A and A<=100)and(1<=B and B<=100):
    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())

total = a + b
if total % 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())
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=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())

bool_a = a % 3 == 0
bool_b = b % 3 == 0
bool_ab = (a + b) % 3 == 0

if bool_a or bool_b or bool_ab:
    print('Possible ')
else:
    print('Impossible ')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x,y=map(int,input().split())
if x%3==0 or y%3==0 or (x+y)%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:
    print("Possible")
elif a % 3 == 1 and b % 3 == 2:
    print("Possible")
elif a % 3 == 2 and b % 3 == 1:
    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:
a, b = input().split()

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

Submission status: Accepted

Solution code:
a=list(map(int,input().split()))
b=sum(a)
 
if (b%3 ==0 or a[0]%3 ==0 or a[1]%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 =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:
#
# abc067 a
#
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """4 5"""
        output = """Possible"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """1 1"""
        output = """Impossible"""
        self.assertIO(input, output)


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


if __name__ == "__main__":
    # unittest.main()
    resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Sharing Cookies
# https://atcoder.jp/contests/abc067/tasks/abc067_a

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

result = 'Impossible'

if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
    result = 'Possible'

print(result)

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,A+Bのいずれかが3の倍数になるか

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_mai, B_mai = map(int, input().split())
summ = A_mai + B_mai

if (A_mai % 3 == 0 or B_mai % 3 == 0 or summ % 3 == 0):
    print('Possible')
else:
    print('Impossible')

Submission status: Accepted

Solution code:
# A - Sharing Cookies

# A,B,A+Bのいずれかが3の倍数かどうか判定する


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:
#n = int(input())
a, b = map(int, input().split())
#l = list(map(int,input().split()))
#l = [list(map(int,input().split())) for i in range(n)]

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:
# すぬけくんは 3匹のヤギにクッキーを渡したいです。
# すぬけくんは A枚のクッキーが入った缶と、
# B枚のクッキーが入った缶を持っています。
# すぬけくんは A, B, A + B のいずれかの枚数のクッキーを
# ヤギたちに渡すことができます。
# 3匹のヤギが同じ枚数ずつ食べられるように
# クッキーを渡すことが可能かどうか判定してください。

# 制約
# 1 ≦ A, B ≦ 100
# A, B はいずれも整数

# 標準入力から A, B を取得する
a, b = map(int, input().split())


result = "ret"

# 以下、判定処理
if a % 3 == 0:  # Aの缶だけを渡して、3等分できる
    result = "Possible"
elif b % 3 == 0:  # Bの缶だけを渡して、3等分できる
    result = "Possible"
elif (a + b) % 3 == 0:  # A + B 缶を渡して、3等分できる
    result = "Possible"
else:
    result = "Impossible"

print(result)

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

# A,B,A+Bのうちどれか1つでも3で割り切れればPossible
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: # 3で割って余りが出なければ、3匹平等に渡せる
    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==0 or b%3==0 or (a+b)%3==0 else "Impossible")

Submission status: Accepted

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

total = A + B

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

Submission status: Accepted

Solution code:
#   AtCoder abc067 a
#   ストレッチ課題

#   入力
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 = 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 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())
Total = A + B

# いずれかのパターンで3分割均等にできるかを判定後メッセージを出力
if A % 3 == 0 \
or B % 3 == 0 \
or Total % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Submission status: Accepted

Solution code:
# 067a

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

# A, B, A+B のいずれかの枚数のクッキーをヤギたちに渡すことができる
# 3匹のヤギ が同じ枚数ずつ食べられるようにクッキーを渡すことが可能ならば 'Possible' と、そうでなければ 'Impossible' と出力

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）を整数で入力
A,B = map(int,input().split())
# AかBかA+Bのどれかを3匹に分けれればPossible、できなければImpossible
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 = list(map(int,input().split()))

A, B = S_list[0], S_list[1]
if (A * B * (A + B)) % 3 == 0 :
    result = "Possible"
else:
    result = "Impossible"
print(result)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Sharing Cookies

# 3匹のヤギにクッキーを渡したい
# A 枚入ったクッキーが入った缶
# B 枚入ったクッキーが入った缶
# A B 缶を持っている。

#  A, B, A + B のいずれかの枚数をヤギに渡すことができる

# 3匹のヤギが同じ枚数食べれるように渡せるか判定する
# 可能なら Possible    不可能なら Impossible

# A B を標準入力で取得
A, B = map(int, input().split())
# print(A, B)

# A の場合 Bの場合 A + B の場合で分ける
# それぞれの余りが 0 の時 Possible
# それ以外は Impossible

if A % 3 == 0:
    answer = "Possible"
elif B % 3 == 0:
    answer = "Possible"
elif (A + B) % 3 ==0:
    answer = "Possible"
else:
    answer = "Impossible"

# 結果を出力
print(answer)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
# intは入力に対しての関数、出力ではない

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

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

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=(int(x) for x in input().split())
c = ( a + b ) % 3
if ((int(a) % 3)  == 0 or  (int(b) % 3)  == 0 or int(c) == 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_can, b_can = map(int, input().split())

if (a_can + b_can) % 3 == 0:
    print('Possible')
elif a_can % 3 == 0:
    print('Possible')
elif b_can % 3 == 0:
    print('Possible')
else:
    print('Impossible')

Submission status: Accepted

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

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 = list(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().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())
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 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())
if a%3 == 0 or (a+b)%3 == 0 or abs(a-b)%3:
  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:
  ans = 'Possible'
else:
  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:
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    a, b = i_map()

    if a % 3 == 0:
        print('Possible')
        exit()

    if b % 3 == 0:
        print('Possible')
        exit()

    if (a+b) % 3 == 0:
        print('Possible')
        exit()

    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=map(int,input().split())
print(["P","Imp"][a%3==b%3 and (a%3==1 or a%3==2)]+"ossible")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print(["Possible","Impossible"][a%3==b%3 and (a%3==1 or a%3==2)])

Submission status: Accepted

Solution code:
a,b = map(int, raw_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:
import sys

read = sys.stdin.read
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7


def main():
    A, B = map(int, readline().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())
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())
ans = 'Impossible'
ls =[A,B,A+B]
for i in ls:
  if i % 3 == 0:
    ans = 'Possible'
print(ans)

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]
#a = [int(input()) for _ in range(n)]

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 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 solve():
    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__":
    solve()

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()


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

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

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split()))
n = a + b
if a % 3 == 0 or b % 3 == 0 or n % 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())

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:
x,y=map(int, input().split())
if x%3!=0 and y%3!=0 and (x+y)%3!=0:
  print('Impossible')
else:
  print('Possible')

Submission status: Accepted

Solution code:
# # Make IO faster
# import sys
# input = sys.stdin.readline

# # get single (or) multiple str
# X = input()

# # get single int
# N = int(input())
# # get multiple int (e.g., 2)
# X, Y = map(int, input().split())
# # get multiple int (e.g., 2) for N lines
# XY = [list(map(int, input().split())) for _ in range(N)]

# from IPython import embed; embed(); exit();

# 全部入り
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
import numpy as np
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()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

Submission status: Accepted

Solution code:
ary = input().split(" ")
A = int(ary[0])
B = int(ary[1])
 
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')