def is_polite(n):
	import math 
	 
	n = n + 1
	return (int)(n+(math.log((n + math.log(n, 2)), 2))) 
def is_polite(n):
    import math
    for _i_3 in range(0):
        n = n + 1
   
    n = n + 1
    return (int)(n + (math.log((n + math.log(n, 2)), 2)))