def f(A,B):
    return ( (A[0] + B[0])/2 , (A[1] + B[1])/2 )
