object Main {

	def main(arg:Array[String]) = {
		var list = scala.io.StdIn.readLine().split(" ").map(_.toInt);
		if(List(list(0), list(1), list(0) + list(1)).exists(_ % 3 == 0)) println("Possible");
		else println("Impossible");
	}

}
