program main
	implicit none
    integer::a,b,c
    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
end program main
