solver::Int->Int->String
solver a b = if or (map (\x->mod x 3 == 0)  [a,b,a+b]) then "Possible\n" else "Impossible\n"

main::IO()
main=do
  abc<-getLine
  let a:b:[]=map read (words abc)
  putStr (solver a b)