function main(input) {
    var count = 0;
    var nums = input.split('\n')[1].split(' ').map((n) => parseInt(n, 10)).reduce((a,b)=>a*b);

    while(nums% 2 === 0) {  count++;  nums /= 2; }
    
    console.log(count);
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));