-- Try AtCoder
-- author: Leonardone @ NEETSDKASU

main = putStrLn . solve . map read . words =<< getContents

solve [a,b]
    | mod a     3 == 0 = "Possible"
    | mod b     3 == 0 = "Possible"
    | mod (a+b) 3 == 0 = "Possible"
    | otherwise        = "Impossible"