Another method for calculating parity.