Necessary conditions for constrained problems under Mangasarian-Fromowitz conditions