function Main(input) {
    var input = input.split('\n');
    var n = parseInt(input[0]);
    var Int = input[1].split(' ').map(n =>parseInt(n));
    var count = 0;
    function hoge(arr) {
        return arr.every(x => x % 2 === 0);
    }
    console.log(hoge(Int));
    
    while(hoge(Int)) {
        count++;
        Int = Int.map((n) => {return n/2});
    }
    }
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));