
    Given a patient monitoring system's maximum sampling frequency in Hertz, determine the highest power of 2 sampling rate that can be used without exceeding the system's capabilities. This optimization is crucial for efficient digital signal processing of vital signs while maintaining system stability and accurate patient data collection.
    

    
def highest_Power_of_2(n):
    """
    Given a patient monitoring system's maximum sampling frequency in Hertz, determine the highest power of 2 sampling rate that can be used without exceeding the system's capabilities. This optimization is crucial for efficient digital signal processing of vital signs while maintaining system stability and accurate patient data collection.
    

    """
def highest_Power_of_2(n):
    """
    Given a patient monitoring system's maximum sampling frequency in Hertz, determine the highest power of 2 sampling rate that can be used without exceeding the system's capabilities. This optimization is crucial for efficient digital signal processing of vital signs while maintaining system stability and accurate patient data collection.
    

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