import Data.List

toInt :: String -> Int
toInt = read :: String -> Int

main = do
  [a, b] <- map toInt . words <$> getLine
  putStrLn $ if or . map (\x -> mod x 3 == 0) $ [a, b, a+b] then "Possible" else "Impossible"
