def is_polite(n):
	import math 
	 
	n = n + 1
	return (int)(n+(math.log((n + math.log(n, 2)), 2))) 
def is_polite(U):
    import math
   
    U = U + 1
    return (int)(U + (math.log((U + math.log(U, 2)), 2)))