Everything depends on the way you look at things. View every challenge you encounter as an opportunity. There is always a growth side to every situation. The optimist sees an opportunity in every misfortune. The pessimist sees misfortune in every opportunity. The optimist sees the doughnut, the pessimist sees the hole.
You can develop success from every failure. Discouragement and failure are two stepping stones to success. No other elements can do so much for you if you're willing to study them and make them work