import std.algorithm,
       std.string,
       std.array,
       std.stdio,
       std.range,
       std.conv;

void main() {
  int[] AB = readln.chomp.split.to!(int[]);
  int A = AB[0],
      B = AB[1];

  writeln([(A % 3), (B % 3), ((A + B) % 3)].any!(x => x == 0) ? "Possible" : "Impossible");
}
