
    Given a patient monitoring system's desired sampling frequency in Hz, determine the highest supported sampling rate that is a power of 2 to ensure optimal hardware performance and reliable vital sign measurements. The monitoring system must operate at a frequency that is less than or equal to the desired sampling rate while maintaining the power-of-2 constraint for efficient data processing.
    

    
def highest_Power_of_2(n):
    """
    Given a patient monitoring system's desired sampling frequency in Hz, determine the highest supported sampling rate that is a power of 2 to ensure optimal hardware performance and reliable vital sign measurements. The monitoring system must operate at a frequency that is less than or equal to the desired sampling rate while maintaining the power-of-2 constraint for efficient data processing.
    

    """
def highest_Power_of_2(n):
    """
    Given a patient monitoring system's desired sampling frequency in Hz, determine the highest supported sampling rate that is a power of 2 to ensure optimal hardware performance and reliable vital sign measurements. The monitoring system must operate at a frequency that is less than or equal to the desired sampling rate while maintaining the power-of-2 constraint for efficient data processing.
    

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