#include <iostream>
using namespace std;

int main()
{
	int n = 0, k = 40;
	long a;

	cin >> n;

	for (int i = 0; i < n; i++) {
		cin >> a;
		int j = 0;

		while (a % 2 == 0) {
			a /= 2;
			j++;
		}
		if (j < k)
			k = j;
	}

	cout << k << endl;

	return 0;
}