import Glibc
extension String: CollectionType {}

var cookie = readLine()!.split(" ").map { Int($0)! }
if cookie[0] % 3 == 0 || cookie[1] % 3 == 0 || (cookie.reduce(0){ $0 + $1 }) % 3 == 0 {
  print("Possible")
} else {
  print("Impossible")
}
