var line=parseInt(readline()) var bin=line.toString(2) var arr=bin.split('0') //console.log(arr) var max=0 for(let i=0;i<arr.length;i++){ if(arr[i].length>max){ max=arr[i].length } } console.log(max)
var line=parseInt(readline()) var bin=line.toString(2) var arr=bin.split('0') //console.log(arr) var max=0 for(let i=0;i<arr.length;i++){ if(arr[i].length>max){ max=arr[i].length } } console.log(max)