
    Given the total number of patient vital sign readings collected from monitoring devices, determine the largest batch size (as a power of 2) that can be processed simultaneously without exceeding the total number of readings, to optimize the hospital's real-time health analytics system. The batch size must be a power of 2 to ensure efficient parallel processing across the hospital's distributed computing infrastructure.
    

    
def highest_Power_of_2(n):
    """
    Given the total number of patient vital sign readings collected from monitoring devices, determine the largest batch size (as a power of 2) that can be processed simultaneously without exceeding the total number of readings, to optimize the hospital's real-time health analytics system. The batch size must be a power of 2 to ensure efficient parallel processing across the hospital's distributed computing infrastructure.
    

    """
def highest_Power_of_2(n):
    """
    Given the total number of patient vital sign readings collected from monitoring devices, determine the largest batch size (as a power of 2) that can be processed simultaneously without exceeding the total number of readings, to optimize the hospital's real-time health analytics system. The batch size must be a power of 2 to ensure efficient parallel processing across the hospital's distributed computing infrastructure.
    

    """
    res = 0
    for i in range(n, 0, -1):
        if i & i - 1 == 0:
            res = i
            break
    return res