
    Given the total number of patient records in a hospital's readmission risk analysis system, determine the largest batch size (which must be a power of 2) that can be processed without exceeding the total number of records, ensuring optimal system performance and complete data coverage. For example, if there are 100 patient records, the system should process them in batches of 64 records at a time to maintain efficient resource utilization.
    

    
def highest_Power_of_2(n):
    """
    Given the total number of patient records in a hospital's readmission risk analysis system, determine the largest batch size (which must be a power of 2) that can be processed without exceeding the total number of records, ensuring optimal system performance and complete data coverage. For example, if there are 100 patient records, the system should process them in batches of 64 records at a time to maintain efficient resource utilization.
    

    """
def highest_Power_of_2(n):
    """
    Given the total number of patient records in a hospital's readmission risk analysis system, determine the largest batch size (which must be a power of 2) that can be processed without exceeding the total number of records, ensuring optimal system performance and complete data coverage. For example, if there are 100 patient records, the system should process them in batches of 64 records at a time to maintain efficient resource utilization.
    

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