Help me in solving LB01B problem

My issue

please explain problem.

Learning course: Python for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

@sannayilasatis
The logic is if both A and C are even or both are odd then answer would be (A+C)/2;
else the answer would be -1;