Загрузка данных


'''
from ipaddress import *
net = ip_network(f'198.168.0.0/255.255.255.240')
print(net)
'''
'''
from ipaddress import *
count = -2
for mask in range(33):
    net = ip_network(f'198.168.0.0/{mask}',0)
    count += 1
    print(net)
'''


'''
from ipaddress import *
for mask in range(33):
    net = ip_network(f'215.181.200.27/{mask}',0)
    print(net)
'''

'''
from ipaddress import *
for mask in range(33):
    net = ip_network(f'215.181.200.27/{mask}',0)
    print(net, net.netmask)
'''

'''
from ipaddress import *
for mask in range(33):
    net = ip_network(f'157.127.182.76/{mask}',0)
    net2 = ip_network(f'157.127.190.80/{mask}',0)
    if net != net2:
        print(net, net2)
'''

'''
from ipaddress import *
for mask in range(33):
    net = ip_network(f'108.133.75.91/{mask}',0)
    print(net, net.netmask)
'''


#net.num_addresses


from ipaddres import *
net = ip_network('172.16.192.0/255.192.0', 0)
k = 0
for ip in net:
    b = f(ip:b)
    if ip.count('1') % 5 != 0:
        k += 1
print(k, b)



from ipaddres import *
net = ip_network('172.16.192.0/255.192.0', 0)
k = 0
for ip in net:
    p = bin(int(ip))[2:]
    if p[-1] == '0' and p[-8:].count('1') % 2 == 0:
        k += 1
        print(p[-8:])
print(k, b)



from ipaddress import *
for mask in range(16,25):
    net = ip_network(f'157.127.182.76/{mask}',0)