Wait can someone see which sentence is the correct grammar?
Failures can be defined as mistakes made through a person's lifetime which causes them to not be successful.

Which one is correct, to not be successful, or not to be successful?