import qualified Data.ByteString.Char8 as BS
import Data.Maybe (fromJust)

mod3 :: Int -> Bool
mod3 = ((==) 0) . (flip mod 3)

toYesNo :: Bool -> String
toYesNo True = "Possible"
toYesNo _ = "Impossible"

solve :: Int -> Int -> Bool
solve a b
    | ma || mb || mc = True
    | otherwise = False
    where
        ma = mod3 a
        mb = mod3 b
        mc = mod3 (a + b)

main :: IO ()
main = do
    [a, b] <- map (fst . fromJust . BS.readInt) . BS.words <$> BS.getLine :: IO [Int]
    putStrLn $ toYesNo $ solve a b
