program ABC067A
    implicit none
    integer(8)::A,B
    read(5,*)A,B
    if(mod(A,3)==0.or.mod(B,3)==0.or.mod(A+B,3)==0)then
        print'(A)',"Possible"
    else
        print'(A)',"Impossible"
    end if
end program ABC067A