
    Given the current 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 a medical team without exceeding the total patient count. This grouping strategy helps hospital administrators optimize staff assignments and resource allocation while ensuring balanced patient care distribution.
    

    
def highest_Power_of_2(n):
    """
    Given the current 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 a medical team without exceeding the total patient count. This grouping strategy helps hospital administrators optimize staff assignments and resource allocation while ensuring balanced patient care distribution.
    

    """
def highest_Power_of_2(n):
    """
    Given the current 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 a medical team without exceeding the total patient count. This grouping strategy helps hospital administrators optimize staff assignments and resource allocation while ensuring balanced patient care distribution.
    

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