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