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, 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())
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 "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(n) for n 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('Possible' if (A % 3) * (B % 3) * ((A + B) % 3) == 0 else '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())
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())
ans='Impossible'
p='Possible'
if a%3==0 or b%3==0 or (a+b)%3==0:
    ans=p
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
print(["Possible","Impossible"][bool(A*B*(A+B)%3)])

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", "Impossible"][not(A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0)])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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


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

Submission status: Accepted

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

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

print(result)

Submission status: Accepted

Solution code:
X=list(map(int,input().split()))
if (sum(X))%3==0:
        print('Possible')
elif((X[0]%3)==0)or((X[1]%3)==0):
        print('Possible')
else:
        print('Impossible')

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

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

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

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

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

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

#F

#G

#H

#I

#J

#K

#L

#M

#N

#O

#P

#Q

#R

#S

#T

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

Submission status: Accepted

Solution code:
#A 067
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 sharing_cookies(A: int, B: int)->bool:
    return A % 3 == 0 or B % 3 == 0 or (A+B) % 3 == 0


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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#ABC67
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(' '))
msg = 'Possible' if (A%3)*(B%3)*((A+B)%3)==0 else 'Impossible'
print(msg)

Submission status: Accepted

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

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

print(func(A, B))

Submission status: Accepted

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

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 "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())
a,b,c = a%3,b%3,(a+b)%3
if a == 0 or b == 0 or c == 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:
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())
for x in [A,B,A+B]:
  if x%3==0:
    print("Possible")
    break
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());print(["Imp","P"][any([(a+b)%3==0,a%3==0,b%3==0])]+"ossible")

Submission status: Accepted

Solution code:
from sys import stdin
a, b = [int(x) for x in stdin.readline().rstrip().split()]

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B  = [ int(x) for x in input().split() ]

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

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

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

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

Submission status: Accepted

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

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 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%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==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:
    ans = "Possible"
else:
    ans = "Impossible"
print(ans)

Submission status: Accepted

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

if (int_a + int_b) % 3 == 0 or int_a % 3 == 0 or int_b % 3 == 0:
    print("Possible")
else:
    print("Impossible")

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

Submission status: Accepted

Solution code:
# coding:utf-8

import sys

INF = float('inf')
MOD = 10 ** 9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def II(): return int(sys.stdin.readline())
def SI(): return input()


a, b = LI()
print('Possible' if not all([a % 3, b % 3, (a + b) % 3]) else '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, 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:
# ABC 067
def getIntList(): return [int(x) for x in input().split()]
def db(x): 
    global debug
    if debug: print(x)

debug = False
A,B = getIntList()
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 =(int(i) for i in input().split())
ans = 'Impossible'
if a%3==0 or b%3 ==0:
 ans = 'Possible'
elif (a+b)%3 == 0:
 ans = 'Possible'  
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:
def main():
  a, b = map(int, input().split())
  if (a+b)%3 == 0:
    print('Possible')
    return
  if a % 3 == 0:
    print('Possible')
    return
  if 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(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:
    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)%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 = 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())
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()))
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:
def abc067_a():
    a, b = map(int, input().split())
    if a * b * (a + b) % 3 == 0:
        print("Possible")
    else:
        print("Impossible")


abc067_a()

Submission status: Accepted

Solution code:
lines = input().split()
a = int(lines[0])
b = int(lines[1])
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())
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==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())
m = A + B
if(A%3 == 0 or B%3 == 0 or m%3 == 0):
  print("Possible")
else:
  print("Impossible")

Submission status: Accepted

Solution code:
A,B =map(int,input().split())
count = 0
if A%3==0:
    print("Possible")
    count += 1
if B%3==0:
    if count == 0:
        print("Possible")
        count += 1
if (A+B)%3==0 :
    if count == 0:
        print("Possible")
        count += 1
if count == 0:
    print("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 = [int(_) for _ 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 = [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("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:
from statistics import mean, median,variance,stdev
import sys
import math

a = input().split()
#y = input().split()

x = int(a[0])
y = int(a[1])
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 = 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:
# -*- coding: utf-8 -*-


def main():
    """Function."""
    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:
  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=[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:
list=list(map(int,input().split()))
a=list[0]
b=list[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 * (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','Impossible'][(a*b*(a+b))%3>0])

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

Submission status: Accepted

Solution code:
A, B = [int(_) for _ in input().split()]
if (A % 3)*(B % 3)*((A+B) % 3) == 0:
    print('Possible')
else:
    print('Impossible')

Submission status: Accepted

Solution code:
#横にn個入力
a, b = map(int, input().split())
if a % 3 == 0:
    print("Possible")
    exit()
elif b % 3 == 0:
    print("Possible")
    exit()
elif (a + b) % 3 == 0:
    print("Possible")
    exit()
print("Impossible")

Submission status: Accepted

Solution code:
A, B = [ int(i) for i in 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 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")