System.in.eachLine{println 2*0L.highestOneBit(it.toLong())}