Define sameParity