module Main where

import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    [a, b] <- fmap read . words <$> getLine
    if any ((== 0) . (`mod` 3)) [a, b, a + b]
        then putStrLn "Possible"
        else putStrLn "Impossible"