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:
a=input().strip().split(" ")

b=[int(i) for i in a]

if(b[0]%3==0 or b[1]%3==0 or (b[0]+b[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().rstrip().split()))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = list(map(int, input().strip().split(' ')))
if A%3==0:
  flag=True
elif B%3==0:
  flag=True
elif (A+B)%3==0:
  flag=True
else:
  flag=False
if flag:
  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, 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())
f = lambda x: x % 3 == 0
print('Possible' if f(a) or f(b) or f(a+b) else 'Impossible')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
print('Possible' if len(list(filter(lambda x: x % 3 == 0, [A, B, A+B]))) > 0 else '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:
f=lambda x:x%3==0
a,b=map(int,input().split())
print(['Impossible','Possible'][f(a)or f(b)or f(a+b)])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- 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:
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 not a % 3 or not b % 3 or not (a + b) % 3 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:
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())
c = a + b
if a % 3 == 0 or b % 3 == 0 or c % 3 == 0:
  print("Possible")
else:
  print("Impossible")

Submission status: Accepted

Solution code:
a, b = list(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(('Imp'*((a%3 and b%3 and(a+b)%3)>0)or'P')+'ossible')

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

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = (int(_) for _ in 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 = 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:
import sys
import math
import collections
import itertools
import array
import inspect

# Set max recursion limit
sys.setrecursionlimit(1000000)


# Debug output
def chkprint(*args):
    names = {
        id(v): k
        for k, v in inspect.currentframe().f_back.f_locals.items()
    }
    print(', '.join(
        names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))


# Binary converter
def to_bin(x):
    return bin(x)[2:]


def li_input():
    return [int(_) for _ in input().split()]


def gcd(n, m):
    if n % m == 0:
        return m
    else:
        return gcd(m, n % m)


def gcd_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = gcd(v, L[i])

    return v


def lcm(n, m):
    return (n * m) // gcd(n, m)


def lcm_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = lcm(v, L[i])

    return v


# Width First Search (+ Distance)
def wfs_d(D, N, K):
    """
    D: 隣接行列(距離付き)
    N: ノード数
    K: 始点ノード
    """

    dfk = [-1] * (N + 1)
    dfk[K] = 0

    cps = [(K, 0)]
    r = [False] * (N + 1)
    r[K] = True
    while len(cps) != 0:
        n_cps = []
        for cp, cd in cps:
            for i, dfcp in enumerate(D[cp]):
                if dfcp != -1 and not r[i]:
                    dfk[i] = cd + dfcp
                    n_cps.append((i, cd + dfcp))
                    r[i] = True

        cps = n_cps[:]

    return dfk


# Depth First Search (+Distance)
def dfs_d(v, pre, dist):
    """
    v:  現在のノード
    pre: １つ前のノード
    dist: 現在の距離

    以下は別途用意する
    D: 隣接リスト(行列ではない)
    D_dfs_d: dfs_d関数で用いる，始点ノードから見た距離リスト
    """

    global D
    global D_dfs_d

    D_dfs_d[v] = dist

    for next_v, d in D[v]:
        if next_v != pre:
            dfs_d(next_v, v, dist + d)

    return


# --------------------------------------------

dp = None


def main():
    A, B = li_input()

    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())
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:
#67a
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
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:
# vim: set fileencoding=utf-8 :
a, b = map(int, raw_input().split())

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

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, raw_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%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:
#-*-coding:utf-8-*-

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

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

if __name__ == '__main__':
    main()

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 % 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:
from collections import defaultdict
import sys,heapq,bisect,math,itertools,string,queue
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
AtoZ = [chr(i) for i in range(65,65+26)]
atoz = [chr(i) for i in range(97,97+26)]

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

A,B = inpl()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num,numtwo = map(int,input().split())

if num % 3 == 0 or numtwo % 3 == 0 or (num + numtwo) % 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:
#coding:utf-8
n=[int(i) for i in input().split()]
if((n[0]+n[1])%3==0):
  print("Possible")
elif(n[0]%3==0):
  print("Possible")
elif(n[1]%3==0):
  print("Possible")
else:
  print("Impossible")

Submission status: Accepted

Solution code:
a, b = (int(x) for x in 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=[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%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:
# -*- 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:
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+B)%3*(A%3)*(B%3)>0]+'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")
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 = list(map(int,input().split()))

if a%3 == 0 or b%3 == 0 or (a+b)%3==0:
    if a != 0 and b != 0:
        print("Possible")
    else:
        print("Impossible")
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:
a,b = map(int, input().split())
flag = 0
for i in [a,b,a+b]:
    if i % 3 == 0:
        flag = 1
        break
if flag:
    print("Possible")
else:
    print("Impossible")

Submission status: Accepted

Solution code:
# input
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(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,raw_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('Possible' if (a+b)%3==0 or a%3==0 or b%3==0 else 'Impossible')

Submission status: Accepted

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

#A,B,A+Bそれぞれについて3で割り切れるか判定

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

Submission status: Accepted

Solution code:
N, M = map(int, input().split())

L = N + M

if N % 3 == 0 or M % 3 == 0 or L % 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*B) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Submission status: Accepted

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

if sum((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());print(["Impossible","Possible",][bool(A%3 is 0 or B%3 is 0 or (A+B)%3 is 0)])

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

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

Submission status: Accepted

Solution code:
a,b=[int(i) for i in input().split()]
t3=lambda x:x%3==0
print("Possible" if any(list(map(t3,[a,b,a+b]))) 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:
ina,inb = list(map(int,input().split()))
if ina%3 == 0:
  print("Possible")
elif inb%3 == 0:
  print("Possible")
elif (ina+inb)%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 min([i%3 for i in [a,b,a+b]])==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:
    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())

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

Submission status: Accepted

Solution code:
N = list(map(int,input().split()))

if N[0]%3==0 or N[1]%3==0 or (sum(N))%3==0:
    print("Possible")
else:
    print("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:
a,b = list(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())
A_rest = A%3
B_rest = B%3
AB_rest = (A+B)%3

if (A_rest)*(B_rest)*(AB_rest)==0:
    print("Possible")
else:
    print("Impossible")

Submission status: Accepted

Solution code:
n, m = list(map(int, input().split()))
print('Impossible' if n%3 and m%3 and (n+m)%3 else '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(" "))
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:
    print("Possible")
elif B%3==0:
    print("Possible")
elif (A+B)%3==0:
    print("Possible")
else :
    print("Impossible")

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][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 % 3 == 0:
    result = "Possible"
elif b % 3 == 0:
    result = "Possible"
else:
    if (a+b) % 3 == 0:
        result = "Possible"
    else:
        result = "Impossible"
print(result)

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

Submission status: Accepted

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

# AtCoder Beginner Contest
# Problem A

if __name__ == '__main__':
    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:
    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 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(['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%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(('im'*((a%3 and b%3 and (a+b)%3)>0)+'possible').capitalize())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print(("P","Imp")[a*b%3%2]+"ossible")

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print(("P","Imp")[a*b%3==1]+"ossible")

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 = input().split(" ")
a = int(a)
b = int(b)
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(['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())
ans = 'Possible'
if a%3!=0 and b%3!=0 and (a+b)%3!=0:
    ans = 'Impossible'
print(ans)