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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python

A,B=list( 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:
m,d = [ int(i) for i in input().split()]

if m%3==0 or d%3==0 or (m+d)%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, raw_input().split())
print "Possible" if min(A%3, B%3, (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:
if __name__ == "__main__":
    a,b = map(int, input().split())
    if a >= 3 and a % 3 == 0:
        print ("Possible")
        exit()
    if b >= 3 and b % 3 == 0:
        print ("Possible")
        exit()
    if (a + b) >= 3 and (a + b) % 3 == 0:
        print ("Possible")
        exit()
    print ("Impossible")

Submission status: Accepted

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


l = map(int, raw_input().split())
A = l[0]
B = l[1]

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

Submission status: Accepted

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

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

if ok:
    print('Possible')
else:
    print('Impossible')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
http://abc067.contest.atcoder.jp/tasks/abc067_a

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    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(sys.argv[1:])

Submission status: Accepted

Solution code:
import math 
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:
from collections import defaultdict
from itertools import product, groupby
from math import pi
from collections import deque
from bisect import bisect, bisect_left, bisect_right
INF = 10 ** 10


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,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 = [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 = [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:
x,y = map(int,input().split())
z = x+y
print('Possible' if x%3==0 or y%3==0 or z%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:
def main():
    a, b = map(int, input().split())
    goats = 3
    if a%goats == 0 or b%goats == 0 or (a+b)%goats == 0:
        print("Possible")
    else:
        print("Impossible")


if __name__ == "__main__":
        main()

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())
C = A*B*(A+B)
if 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 = list(map(int, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = input().split()

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

Submission status: Accepted

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

else:
    print("Impossible")

Submission status: Accepted

Solution code:
def Q1(x):
    A, B = x[0], x[1]
    if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
        return 'Possible'
    else:
        return 'Impossible'

l = [int(i) for i in input().split()]
print(Q1(l))

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:
t = raw_input().split()
a = int(t[0])
b = int(t[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) 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().strip().split())
e = x%3==0 or y%3==0 or (x+y)%3==0
print("Possible" if e else "Impossible")

Submission status: Accepted

Solution code:
a,b=raw_input('').split()
a=int(a)
b=int(b)

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

Submission status: Accepted

Solution code:
input_line1 = map(int,raw_input().split(" "))
#input_line2 = map(int,raw_input().split(" "))
a = input_line1[0]
b = input_line1[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 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:
#!usr/bim/python
#! -*- coding: utf-8 -*-


a_b = raw_input()
a_b = a_b.split()
a = a_b[0]
b = a_b[1]
a = int(a)
b = int(b)

status = 0

if a % 3 == 0:
    status = 1
elif b % 3 == 0:
    status = 1
elif (a + b) % 3 == 0:
    status = 1

if status == 0:
    print "Impossible"
else:
    print "Possible"

Submission status: Accepted

Solution code:
#!/usr/bin
# -*- cording: "utf-8" -*-
 
a = input().split()
a = list(map(int, a))
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:
def sharing_cookies():
	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"


if __name__ == "__main__":
	sharing_cookies()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
a=input()
b=a.split(" ")
A=int(b[0])
B=int(b[1])

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

Submission status: Accepted

Solution code:
a = input().split(' ')
b = list(map((int), a))
sum = sum(b)
A = b[0]
B = b[1]

if sum % 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:
#!/usr/bin/env python
# -*- conding: utf-8 -*-

raw = raw_input()
A = int(raw.split()[0])
B = int(raw.split()[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) = tuple(map(int, input().split(" ")))

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

Submission status: Accepted

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

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

if (a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0) and (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:
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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys

input_line = sys.stdin.readline()

line = input_line.split(' ')
a = int(line[0])
b = int(line[1])
c = a + b

if c > 2 and c % 3 == 0:
	print('Possible')
elif a > 2 and a % 3 == 0:
	print('Possible')
elif b > 2 and 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:
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 = raw_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:
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, M = map(int, raw_input().split())
if (N+M) % 3 == 0:
	print  "Possible"

elif (N) % 3 == 0:
	print  "Possible"

elif (M) % 3 == 0:
	print  "Possible"

else:
	print "Impossible"

Submission status: Accepted

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

jud=False

if a%3==0:
    jud=True
elif b%3==0:
    jud=True
elif (a+b)%3==0:
    jud=True
else:
    jud=False

if jud==True:
    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())
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 = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list = input().rstrip().split()
A = int(list[0])
B = int(list[1])
if A%3 != 0:
    if B%3 != 0:
        if (A+B)%3 != 0:
            print("Impossible")
        else: print("Possible")
    else: print("Possible")
else: print("Possible")

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:
i = input().split()
a = int(i[0])
b = int(i[1])

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 =(int (i) for i in input().split())
if a%3==0:
    print('Possible')
elif b%3==0:
    print('Possible')
elif (a+b)%3==0:
    print('Possible')
else:
    print('Impossible')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=[int(i) for i in 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=[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%3==0 or B%3==0 or (A+B)%3==0 else "Impossible")

Submission status: Accepted

Solution code:
print((lambda a, b: (not a%3 or not b%3 or not (a + b) % 3) and "Possible" or "Impossible")(*map(int, input().split())))

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

mainA()

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:
m, n = map(int, input().split())
ans = (m + n) % 3
ans2 = m % 3
ans3 = n % 3
if ans == 0 or ans2 == 0 or ans3 == 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, 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:
# -*- coding: utf-8 -*-

import re

a, b = map(int, re.split('\s', raw_input()))

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

Submission status: Accepted

Solution code:
arr = raw_input().split(' ')
a = int(arr[0])
b = int(arr[1])
ab = a+b

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()


def main():
    a,b = LI()
    if min(a % 3, b%3, (a+b)%3) == 0:
        return 'Possible'

    return 'Impossible'


print(main())

Submission status: Accepted

Solution code:
from sys import stdin
a,b = map(int,stdin.readline().split())
ans = 'Impossible'
c = a+b
x = [a,b,c]
def ch(n):
 if n==0:
  return 0
 if n%3:
  return 0
 return 1
for i in x:
 if ch(i):
  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:
# -*- 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:
if __name__ == '__main__':
    lis = list(map(int, input().split()))
    A = lis[0]
    B = lis[1]
    
    if (A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0):
        print("Possible")
    else:
        print("Impossible")

Submission status: Accepted

Solution code:
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(a): return "".join(list(map(str, a)))
 
a,b = rli()
if(a % 3 == 0 or b % 3 == 0 or (a+b)%3 == 0):
    print("Possible")
else:
    print("Impossible")

Submission status: Accepted

Solution code:
n,m=map(int,raw_input().split())
print "Possible" if n%3==0 or m %3==0 or (n+m)%3==0 else "Impossible"

Submission status: Accepted

Solution code:
cookies = input().split(' ')
a, b = (int(cookies[0]), int(cookies[1]))

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

Submission status: Accepted

Solution code:
#ABC067A

a,b=map(int,raw_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())
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 python
#-*- coding: utf-8 -*-

from collections import defaultdict
from math import factorial as f
from fractions import gcd as g

a, b = [int (i) % 3 for i in raw_input ().split ()]
if a: a = (a + b) % 3
if a: a = b
print ["Possible", "Impossible"][a != 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=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:
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(a): return "".join(list(map(str, a)))

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

Submission status: Accepted

Solution code:
ans = ['Possible', 'Impossible']

def judge(a, b):
	if a % 3 == 0:
		return 0
	elif b % 3 == 0:
		return 0
	elif (a + b) % 3 == 0:
		return 0
	return 1

inpt = map(int, raw_input().split())
print ans[judge(inpt[0], inpt[1])]

Submission status: Accepted

Solution code:
# スペース区切りの整数の入力
a, b = map(int, input().split())

# print(a)
# print(b)

ans = "Impossible"
if a % 3 == 0:
	ans = "Possible"

if b % 3 == 0:
	ans = "Possible"

if (a+b) % 3 == 0:
	ans = "Possible"

print(ans)

Submission status: Accepted

Solution code:
def solution(a, b):
    total = a + b
    if total % 3 == 0:
        print('Possible')
    elif a % 3 == 0:
        print('Possible')
    elif b % 3 == 0:
        print('Possible')
    else:
        print('Impossible')

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

solution(A, B)

Submission status: Accepted

Solution code:
def read(): return list(map(int, input().split()))


a, b = read()
print("Impossible" if a % 3 and b % 3 and (a + b) % 3 else "Possible")

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

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>0]+"ossible")

Submission status: Accepted

Solution code:
N = raw_input().split()

ans = ""

for i in range(2):
    if int(N[i]) % 3 == 0:
       ans = "Possible"

if int((N[0] + N[1])) % 3 == 0 :
    ans = "Possible"

if ans == "Possible":
    print ans
else:
    print "Impossible"

Submission status: Accepted

Solution code:
import sys

# sys.stdin = open('a1.in')


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


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


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

Submission status: Accepted

Solution code:
c= [int (i) for i in input().split()]
if sum(c)%3==0 or c[0]%3==0 or c[1]%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, raw_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=list(map(int, input().split()))
# A= 4
# B= 5
mod = lambda x: x%3
l = list(map(mod, [A, B, A+B]))
if 0 in l:
    print("Possible")
else:
    print("Impossible")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str_cookies_num = input()
cookies_num = str_cookies_num.split()
cookies_A = int(cookies_num[0])
cookies_B = int(cookies_num[1])

if (cookies_A + cookies_B) % 3 == 0:
    print("Possible")
elif cookies_A % 3 == 0:
    print("Possible")
elif cookies_B % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
a = l[0]+l[1]

if l[0] % 3 == 0:
    print("Possible")
elif l[1] % 3 == 0:
    print("Possible")
elif a % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Submission status: Accepted

Solution code:
N = input().split()

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

Submission status: Accepted

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

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

else:
    print("Impossible")

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

#すぬけくんは 3 匹のヤギにクッキーを渡したいです。
#すぬけくんは A 枚のクッキーが入った缶と、B 枚のクッキーが入った缶を持っています。
#すぬけくんは A,B,A+B のいずれかの枚数のクッキーをヤギたちに渡すことができます。
#3 匹のヤギが同じ枚数ずつ食べられるようにクッキーを渡すことが可能かどうか判定してください。
#3 匹のヤギが同じ枚数ずつ食べられるようにクッキーを渡すことが可能ならば Possible と、
#そうでなければ Impossible と出力せよ。

A = input().split()
#A = [3, 3]
x = int(A[0])
y = int(A[1])

if x % 3 ==0:
    print("Possible")

elif y % 3 ==0:
    print("Possible")
    
elif (x + y) % 3 ==0:
    print("Possible")

    
else:
    print("Impossible")

Submission status: Accepted

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

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