
    Given the total number of patients in the emergency room waiting area, determine the largest group size (which must be a power of 2) that can be efficiently assigned to available medical staff without exceeding the total patient count. This grouping strategy ensures optimal distribution of healthcare resources while maintaining balanced staff-to-patient ratios.
    

    
def highest_Power_of_2(n):
    """
    Given the total number of patients in the emergency room waiting area, determine the largest group size (which must be a power of 2) that can be efficiently assigned to available medical staff without exceeding the total patient count. This grouping strategy ensures optimal distribution of healthcare resources while maintaining balanced staff-to-patient ratios.
    

    """
def highest_Power_of_2(n):
    """
    Given the total number of patients in the emergency room waiting area, determine the largest group size (which must be a power of 2) that can be efficiently assigned to available medical staff without exceeding the total patient count. This grouping strategy ensures optimal distribution of healthcare resources while maintaining balanced staff-to-patient ratios.
    

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