def rey(n): i = 0 while i <= n: i = 2*i return i