import Control.Applicative

solver :: Int->Int->Bool
solver a b = or $ [a`mod`3==0,b`mod`3==0,(a+b)`mod`3==0]

myshow :: Bool -> String
myshow True = "Possible"
myshow False = "Impossible"
 
main :: IO ()
main = do
    -- スペース区切り整数の入力
    [a, b] <- map read . words <$> getLine
    -- 出力
    putStrLn $ myshow $ solver a b

