program sample
	integer ::A,B,C
    
    read(*,*) A,B   
    C=A+B
    
    if (mod(A,3)==0 .or. mod(B,3)==0 .or. mod(C,3)==0) then
    	write(*,*) 'Possible'
    else
    	write(*,*) 'Impossible'
    end if
    stop
end program sample

