solver a b = 
    if a `mod` 3 == 0 || b `mod` 3 == 0 || (a+b) `mod` 3 == 0
        then "Possible"
        else "Impossible"

main :: IO ()
main = do
    [a, b] <- map (read :: String -> Int) . words <$> getLine
    putStr $ (solver a b) ++ "\n"
