Problem:


Score : 100 points

Problem Statement

Snuke is giving cookies to his three goats.

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

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

Constraints

1 \leq A,B \leq 100

Both A and B are integers.

Input

Input is given from Standard Input in the following format:

A B

Output

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

Sample Input 1

4 5

Sample Output 1

Possible

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

Sample Input 2

1 1

Sample Output 2

Impossible

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



Sample input:
4 5


Sample output:
Possible

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

i = a + b

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

i = a + b

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (A + B) // 3 >= 1:
    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 ==0:
    print("possible")
else:
    print("impossible")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

total = A + B

if total < 3:
    print("Impossible")
elif total % 3 != 0:
    print("Impossible")
else:
    print("Possible")

Submission status: Wrong Answer

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

total = A + B

if total < 3:
    print("Impossible")
else:
    print("Possible")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=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 = map(int, input().split())
# intは入力に対しての関数、出力ではない

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:

# 出力
a, b = map(int, input().split())

# 処理&出力
if a / 3 >= 1 :
    print('Possible')
elif b / 3 >= 1:
    print('Possible')
elif (a + b) /3 >= 1:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:

# 出力
a, b = map(int, input().split())

# 処理&出力
if (a + b) / 3 >= 1 :
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
ary = input().split(" ")
A = int(ary[0])
B = int(ary[1])

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print('Possible' if a==3 or b==3 or ((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')
  exit()
elif a % 3 == 0:
  print('Possible')
  exit()
elif b % 3 == 0:
  print('Possible')
  exit()
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("Possble")
else:
  print("Impossible")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if (a+b)%2==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())
print('Possible' if (a+b)%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('Imossible')

Submission status: Wrong Answer

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

if A < 0 or B < 0 or A > 100 or B > 100:
    sys.exit()

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

Submission status: Wrong Answer

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

if A < 0 or B < 0 or A > 100 or B > 100:
    sys.exit()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A+B < 3:
    print('Impossible') 
elif (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 and b%3!=0 and (a+b)%3!=0:
  print('Impossible')
else:
  print('Posible')

Submission status: Wrong Answer

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

if __name__ == '__main__':
    main()

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:
# -*- coding: utf-8 -*-
"""
Created on Thu May 14 12:29:30 2020

@author: shinba
"""

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

if a % 3 == 0:
    print("Yes")
elif b % 3 == 0:
    print("Yes")
elif (a+b) % 3 == 0:
    print("Yes")
else:
    print("No")

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(("Imp"*(sum(map(int,input().split()))%3>0)or"P")+"ossible")

Submission status: Wrong Answer

Solution code:
print("Im"*(sum(map(int,input().split()))%3>0)+"Possible")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, log2
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
 
A, B = MAP()
print("Yes" if A%3 == 0 or B%3 == 0 or (A+B)%3 == 0 else "No")

Submission status: Wrong Answer

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

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>0) and (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("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:
s=sum(map(int, input().split()))
if s%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 > 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())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

else:
    print("Impossible")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# AtCoder
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())
s=a+b

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

Submission status: Wrong Answer

Solution code:
icase=0    
if icase==0:
    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('Possible' if (a // 3) == 0 or (b // 3) == 0 or ((a + b) // 3) == 0 else 'Impossible')

Submission status: Wrong Answer

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

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

Submission status: 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('Yes')
else:
    print('No')

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#ABC067A
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('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 and (A + B)//3 == A//3 or (A + B)//3 == B//3 or (A + B)//3 == (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 and (A + B)//3 == A and (A + B)//3 == B and (A + B)//3 == A + B:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

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

if A + B != 0 and (A + B) % 3 == 0:
	print("Yes")
else:
	print("No")

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, raw_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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,raw_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 == 0:
    print("possible")
else:
    print("impossible")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num=list(map(int,input().split()))
print("Possible" if sum(num)%3==0 else "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())

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
print(['P','Imp'][eval(input().replace(' ','+'))%3>0]+'ossible')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if (a%3 == 0 and b//2==a) or ((a+b)%3 == 0)or(b%3 == 0 and a//2==b) :
    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", "Possible"][eval(input().replace(" ","*"))%3==0])

Submission status: Wrong Answer

Solution code:
c = int(eval(input().replace(" ","+")))
print("Impossible"*(c%6==2 or c%6==4) or "Possible")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
a,b = map(int,input().split())
if (a % 3)*(b % 3) % 3 == 1:
    print("Possible")
else:
    print("Impossible")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
a,b = map(int,input().split())
if (a % 3)*(b % 3) != 1:
    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:
    print('Possible')
else:
    print('Impossible')

Submission status: Wrong Answer

Solution code:
a, b = [int(x) for x in 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==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())
c=a+b

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

Submission status: Wrong Answer

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

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 == 0 or B%3 == 0 or (A+B)%3 == 0:
  r = "possible"
else:
  r = "impossible"

print(r)

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
input = sys.stdin.readline

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