def METHOD_NAME(vectors, position, axis):
    if position == 'L':
        return min([x if axis == 'x' else y if axis == 'y' else z for x, y, z in vectors])
    elif position == 'R':
        return max([x if axis == 'x' else y if axis == 'y' else z for x, y, z in vectors])
    elif position == 'M':
        x_min = min([x if axis == 'x' else y if axis == 'y' else z for x, y, z in vectors])
        x_max = max([x if axis == 'x' else y if axis == 'y' else z for x, y, z in vectors])
        return (x_min + x_max) / 2