Modified digits HMC test