let str ; while(str = readline()){ let w = parseInt(str).toString(2); let res = w.match(/1+/g); let num = Math.max(...res); console.log((num+'').length) }
let str ; while(str = readline()){ let w = parseInt(str).toString(2); let res = w.match(/1+/g); let num = Math.max(...res); console.log((num+'').length) }