MAX2-problem-python-submission fails

Hey,

I’m new to code chef community.Can you help me in submitting my code. My python code runs fine when i execute manually but when i try to submit it throws me Run time error(NZEC ). Can you say what’s wrong with my code.

link: CodeChef: Practical coding for everyone