Application of green functions to finite Fermi systems with fixed numbers of particles and strong pairing