main = putStrLn . solve . map read . words =<< getLine

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