Help me in solving LB01B problem

My issue

Please give me some hint

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

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