Problem:


Score : 100 points

Problem Statement

Snuke is giving cookies to his three goats.

He has two cookie tins. One contains A cookies, and the other contains B cookies. He can thus give A cookies, B cookies or A+B cookies to his goats (he cannot open the tins).

Your task is to determine whether Snuke can give cookies to his three goats so that each of them can have the same number of cookies.

Constraints

1 \leq A,B \leq 100

Both A and B are integers.

Input

Input is given from Standard Input in the following format:

A B

Output

If it is possible to give cookies so that each of the three goats can have the same number of cookies, print Possible; otherwise, print Impossible.

Sample Input 1

4 5

Sample Output 1

Possible

If Snuke gives nine cookies, each of the three goats can have three cookies.

Sample Input 2

1 1

Sample Output 2

Impossible

Since there are only two cookies, the three goats cannot have the same number of cookies no matter what Snuke gives to them.



Sample input:
4 5


Sample output:
Possible

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
  a, b = map(int, input().split())
  if (a + b) == 0:
    print('Impossible')
    return
  if (a+b)%3 == 0:
    print('Possible')
    return
  print('Impossible')
  
if __name__ == '__main__':
  main()

Submission status: Wrong Answer

Solution code:
def main():
  a, b = map(int, input().split())
  if (a+b)%3 == 0:
    print('Possible')
    return
  print('Impossible')
  
if __name__ == '__main__':
  main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input().split();a=int(s[0]);b=int(s[1])
if a==0 or b==0:
    print('Possible')
elif a<3 and b<3:
    print('Impossible')
elif (a+b)%3 or a%3 or b%3==0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
s=input().split();a=int(s[0]);b=int(s[1])
if a==0 or b==0:
    print('Possible')
elif a+b<3:
    print('Impossible')
elif (a+b)%3 or a%3 or b%3==0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
s=input().split();a=int(s[0]);b=int(s[1])
if a+b==0:
    print('Possible')
elif a+b<3:
    print('Impossible')
elif (a+b)%3 or a%3 or b%3==0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
s=input().split();a=int(s[0]);b=int(s[1])
if a+b<3:
    print('Impossible')
elif (a+b)%3 or a%3 or b%3==0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
s=input().split();a=int(s[0]);b=int(s[1])
if (a+b)%3 or a%3 or b%3==0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B =map(int,input().split())
count = 0
if A%3==0:
    print("Possible")
    count += 1
if B%3==0:
    print("Possible")
    count += 1
if (A+B)%3==0 :
    print("Possible")
    count += 1
if count == 0:
    print("Impossile")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("Impossible")

Submission status: Wrong Answer

Solution code:
n = sum(map(int, input().split()))
print(["Impossible","Possible"][n%3==0 and n != 0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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('Posssible')
  else:
    print('Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
if (x+y)%3==0:
	print("Possible")
else:
	print("Inpossible")

Submission status: Wrong Answer

Solution code:
a,b = (int(_) for _ in input().split())

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Solution code:
print('Possible' if sum(list(map(int, input().split()))) % 3 == 0 else 'Impossible')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

L = N + M

if L % 3 == 0 :
  print("Possible")
else:
  print("Impossible")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B= map(int, input().split())
print(["Impossible", "Possible"][(A+B)%3 == 0 and A+B > 2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n, m = list(map(int, input().split()))
print('Possible' if n%3 or m%3 or (n+m)%3 else 'Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a >= b:
  if a % b == 0:
    print("Possible")
  else:
    print("Impossible")
elif a < b:
  if b % a == 0:
    print("Possible")
  else:
    print("Impossible")
elif a == b == 1:
  print("Impossible")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("Impossible" if sum(map(int, input().split())) % 3 else "Possible")

Submission status: Wrong Answer

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

Solution code:
x = input().split(" ")
a = int(x[0])
b = int(x[1])

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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:
        print('Possible')
    else:
        print('Impossible')


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Wrong Answer

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

Solution code:
def main():
    goats =3
    n = input()
    list = [int(i) for i in input().split()]
    if (list[0]% goats == 0 or list[1] % goats==0  or (list[0]+list[1]) % goats == 0):
        print('Possible')
    else:
        print("Impossible")
    if __name__ == "__main__":
        main()

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if sum % 3 == 0:
    print('Possible')

else:
    print('Impossible')

Submission status: Wrong Answer

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

if sum % 3:
    print('Possible')

else:
    print('Impossible')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
print("Possible")

Submission status: Wrong Answer

Solution code:
def sunuke(A, B):
    re = 0
    if A % 3 == 0:    
        re = 1
    if B % 3 == 0:
        re = 1
    if (A+B) % 3 == 0:
        re = 1
        
    if re ==1:
        return "Possible"
    else:
        return "Impossible"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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) for i in raw_input ().split ()]
print ["Possible", "Impossible"][(a + b) % 3 != 0]

Submission status: Wrong Answer

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

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

solution(A, B)

Submission status: Wrong Answer

Solution code:
a=4
b=5
if (a+b)%3 and a%3 and b%3==0:
   print ('Possible')
else: print('Impossible')

Submission status: Wrong Answer

Solution code:
def solve():
    A,B = map(int, input().split())
 
    if A % 3 == 0:
        ans = 'Possible'
    else:
        if B % 3 == 0:
          ans = 'Possible'
        elif A + B % 3 == 0:
          ans = 'Possible'
        else:
            ans = 'Impossible'
 
    print(ans)
 
if __name__ == '__main__':
    solve()

Submission status: Wrong Answer

Solution code:
def solve():
    A,B = map(int, input().split())
 
    if A % 3 == 0:
        ans = 'Possible'
    else:
        if B % 3 == 0:
          ans = 'Possible'
        elif A + B == 0:
          ans = 'Possible'
        else:
            ans = 'Impossible'
 
    print(ans)
 
if __name__ == '__main__':
    solve()

Submission status: Wrong Answer

Solution code:
a=4
b=5
if (a+b)%3 ==0:
    print ('Possible')
else: print('Impossible')
if a%3==0:
   print ('Possible')
else: print('Impossible')
if b%3==0:
    print ('Possible')
else: print('Impossible')

Submission status: Wrong Answer

Solution code:
a=4
b=5
if (a+b)%3 ==0:
    print ('Possible')
else: print('Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Solution code:
str_cookies_num = input()
cookies_num = str_cookies_num.split()

if (int(cookies_num[0])+int(cookies_num[1])) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
cookies_num = []
str_cookies_num = input()
cookies_num = str_cookies_num.split()

if (int(cookies_num[0])+int(cookies_num[1])) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

else:
    print("Impossible")

Submission status: Wrong Answer

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:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

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

1<=A<=100
1<=B<=100

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

else:
    print("Impossible")

Submission status: Wrong Answer

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

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

else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
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 and a != 0 and b != 0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

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

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

else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
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:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

import sys

def main(argv):
    for line in sys.stdin:
        A, B = map(lambda x: int(x), line.split(" ", 2))
        if (A + B) >= 3:
            print("Possible")
        else:
            print("Impossible")

if __name__ == "__main__":
    main(sys.argv)

Submission status: Wrong Answer

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

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

else:
    print('Impossible')

Submission status: Wrong Answer

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

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

else:
        print('Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B = [int(i) for i in input().split()]
if (A+B)%3 == 0 and A+B >= 3:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

import sys

def main(argv):
    for line in sys.stdin:
        A, B = map(lambda x: int(x), line.split(" ", 2))
        if ((A + B) % 3) == 0:
            print("Possible")
        else:
            print("Impossible")

if __name__ == "__main__":
    main(sys.argv)

Submission status: Wrong Answer

Solution code:
ab = input().split(' ')
#print(ab)
if (int(ab[0]) + int(ab[1])) % 3 == 0 and  (int(ab[0]) + int(ab[1])) >= 3:
    print('Possible')

else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
if(__name__ == "__main__"):
    a, b =[int(i) for i in input().split()]
    #print(a,b)
    if((a+b) % 3 == 0 and a > 0 and b > 0):
        print("Possible")
    else:
        print("Impossible")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

C = A + B

if C%3 == 0:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a, b = map(int, raw_input().split())
if (a + b) % 3 == 0:
    print 'Possible'
else:
    print 'Impossible'

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Here your code !

x=input()
a=int(x.split(" ")[0])
b=int(x.split(" ")[1])
if (a%3 or b%3 or (a+b)%3):
    print ("Possible")
else:
    print ("Impossible")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

import sys

def main(argv):
    for line in sys.stdin:
        A, B = map(lambda x: int(x), line.split(" ", 2))
        if (A + B) % 3 == 0:
            print("Possible")
        else:
            print("Impossible")

if __name__ == "__main__":
    main(sys.argv)

Submission status: Wrong Answer

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

else:
    print("Impossible")

Submission status: Wrong Answer

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

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

C = A + B

if C%3 == 0:
    print('possible')
else:
    print('impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
ab = input().split(' ')
#print(ab)
if int(ab[0]) + int(ab[1]) >= 3:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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