Statistical mechanics of particles with negative energies