
    Given the total number of patient visits from the previous day, determine the maximum number of emergency room staff members that can be scheduled in power-of-2 teams (2, 4, 8, 16, etc.) without exceeding the patient volume. This staffing approach ensures efficient team organization and balanced workload distribution while maintaining appropriate coverage for the expected patient load.
    

    
def highest_Power_of_2(n):
    """
    Given the total number of patient visits from the previous day, determine the maximum number of emergency room staff members that can be scheduled in power-of-2 teams (2, 4, 8, 16, etc.) without exceeding the patient volume. This staffing approach ensures efficient team organization and balanced workload distribution while maintaining appropriate coverage for the expected patient load.
    

    """
def highest_Power_of_2(n):
    """
    Given the total number of patient visits from the previous day, determine the maximum number of emergency room staff members that can be scheduled in power-of-2 teams (2, 4, 8, 16, etc.) without exceeding the patient volume. This staffing approach ensures efficient team organization and balanced workload distribution while maintaining appropriate coverage for the expected patient load.
    

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