main = do
  [a, b] <- (map read . words) <$> getLine
  putStrLn $ solve a b

solve:: Int -> Int -> String
solve a b
  | mod a 3 == 0 = "Possible"
  | mod b 3 == 0 = "Possible"
  | mod (a + b) 3 == 0 = "Possible"
  | otherwise = "Impossible"