Fast digit recognition