import math r=math.log10(1000)/math.log10(2) print(math.ceil(res))