#Chris CDIR Advisor !!

print('How many available addresses do you need?')
m = input(x)
if 0 < m < 2 ** 23
    for i in reversed(range(33))
        ipavailable=  ((31- i)**2) + 1
        if ipavailable is >= m
            print (i)
            break
else print ('Failed Response')
