"use strict";

const task =(input)=>{
    const nums = input.split('\n')[1].map((n)=>parseInt(n,10));
    let count = 0;

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