      program main
      read(*,*) i, j
      
      if (i.eq.0) then
        write(*,*) "Impossible"
      else if(j.eq.0) then
        write(*,*) "Impossible"
      else
        if (mod(i,3).eq.0) then
          write(*,*) "Possible"
        else if (mod(j,3).eq.0) then
          write(*,*) "Possible"
        else if (mod(i+j,3).eq.0) then
          write(*,*) "Possible"
        else
          write(*,*) "Impossible"
        end if
      end if
      end