def highest_Power_of_2(n):
    if n <= 0:
        return 0
    p = 1
    while p * 2 <= n:
        p *= 2
    return p