      program main
      read(*,*) i, j
      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
