This quote is saying that in order to be successful, you must be willing to put in a lot of hard work and dedication. You need to be determined and focus on the task you are working on, and accept the outcome, no matter if it was a success or a failure. By dedicating yourself and doing your best, you are investing in your success.