Preprocessing and postprocessing of noisy digits.