'use strict'

const main = input => {
	const args = input.trim().split('\n')
	const n = parseInt(args[0], 10)
	const a = args[1].split(' ').map(Number)
	let cnt = 0

	while (true) {
		let isOdd = false 

		for (let i = 0; i < n; i++) {
			if (a[i] % 2 === 1) isOdd = true
		}

		if (isOdd) break

		for (let i = 0; i < n; i++) {
			a[i] = Math.floor(a[i] / 2)
		}

		cnt++
	}

	console.log(cnt)
}

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