import std.stdio, std.conv, std.string;

void main() {
	auto ip = readln.split.to!(int[]);
	if(ip[0] % 3 == 0 || ip[1] % 3 == 0 || (ip[0] + ip[1]) % 3 == 0){
		writeln("Possible");
	} else {
		writeln("Impossible");
	}
}