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