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