A hand-held gaming device takes X and Y as two input values. These values get updated as X=XY/2 and Y=Y+1 at each iteration and the game stops when X is greater than or equal to N. For X=2, Y=4 and N=3008, what would be the final value of X when the game stops?