Mexico overcomes knockout hurdle after 40 years