'use strict';
function main(input) {
    let args = input.split(' ');
  	let cnt = 0
    let len = args.length
	while(args.filter(a => a % 2 === 0).length === len) {
      args = args.map(a => a / 2)
      cnt = cnt + 1
      console.log(args, cnt)
    }
  	console.log(cnt)
  	
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));