Help me in solving LB01A problem

My issue

def is_even(number):
return number%2 == 0
def calculate_B(A, C):
if (is_even(A) and is_even(C)) or (not is_even(A) and not is_even(C)):
return (A+C)//2
return -1
t = int(input())
for i in range(t):
A, C = map(int, input().split())
result = int(calculate_B(A,C))
if result != -1:
print(result)
else:
print(-1)

#i’m getting runtime error

My code

def is_even(number):
    return number%2 == 0
def calculate_B(A, C):
    if (is_even(A) and is_even(C)) or (not is_even(A) and not is_even(C)):
        return (A+C)//2
    return -1
t = int(input())
for i in range(t):
    A, C = map(int, input().split())
    result = int(calculate_B(A,C))
    if result != -1:
        print(result)
    else:
        print(-1)
        
    

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

Can you try again I am getting successful for the same code