var n:comp;begin repeat read(n);writeln(2shl trunc(ln(n)/0.693))until 1=0end.