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