solve a b
  | mod a 3 == 0 = "Possible"
  | mod b 3 == 0 = "Possible"
  | mod (a + b) 3 == 0 = "Possible"
  | otherwise = "Impossible"
 
main = do
  [a, b] <- map read . words <$> getLine
  putStr $ solve a b