#include<stdio.h>
#include<string.h>
int main(void){
  char *s="python3 -c \"";
  char *t="a,b=map(int,input().split());print(('Imp'*((a%3 and b%3 and(a+b)%3)>0)or'P')+'ossible')";
  char *u="\"";
  s=strcat(s,t);
  s=strcat(s,u);
  system(s);
  return 0;
}
