Find closest multiple of $40000$ to $50000$. We see that $1 \times 40000 = 40000$ is the nearest. Now subtract $40000$ from $50000$ to get reminder $10000$. Add $1$ to quotient.
Since $10000$ is less than $40000$, stop the division. The reminder is $10000$. The topmost line $00001$ is the quotient. Remove all zeros at the start of the quotient to get the actual quotient $1$.