program prob50
    implicit none
    integer :: a,b
    read(*,*) a,b
    if(mod(a,3) == 0 .or. mod(b,3) == 0 .or. mod(a+b,3) == 0)then
        write(*,*) "Possible"
    else
        write(*,*) "Impossible"
    end if

    stop
contains
end program prob50