Suppose that the division N/5 leaves a remainder of 4, and the division N/2 leaves a remainder of 1, what is the ones digit on N?