function main(argString) {
  var input = argString.split(' ');
  var number = 0;
  while (input.filter(v => v % 2 === 0).length === input.length) {
    number++;
    input = input.map(v => v / 2);
  }
  console.log(number);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));