def catAndMouse(x, y, z):
    x = abs(x - z)
    y = abs(y - z)
    
    if x == y:
        return 'Mouse C'
    elif x < y:
        return 'Cat A'
    else:
        return 'Cat B'