which of the pairs of persons are the immediate neighbor of P ?