Digit recognition with neural network