import java.math.*;
import java.util.*;

public class Main {
    static int gcd(int a, int b) {
        if (b == 0)
            return a;
        return gcd(b, a % b);
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int l[] = new int[n];
        int GCD = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (i == 0){
                GCD = tmp;
                continue;
            }
            GCD = gcd(GCD, tmp);
        }
        int cnt = 0;
        while (GCD % 2 == 0) {
            GCD/=2;
            cnt++;
        }
        
        
        System.out.println(cnt);
    }
} import java.math.*; math.* java import java.util.*; util.* java public class Main {
    static int gcd(int a, int b) {
        if (b == 0)
            return a;
        return gcd(b, a % b);
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int l[] = new int[n];
        int GCD = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (i == 0){
                GCD = tmp;
                continue;
            }
            GCD = gcd(GCD, tmp);
        }
        int cnt = 0;
        while (GCD % 2 == 0) {
            GCD/=2;
            cnt++;
        }
        
        
        System.out.println(cnt);
    }
} Main static int gcd(int a, int b) {
        if (b == 0)
            return a;
        return gcd(b, a % b);
    } gcd {
        if (b == 0)
            return a;
        return gcd(b, a % b);
    } if (b == 0)
            return a; b == 0 b 0 return a; a return gcd(b, a % b); gcd(b, a % b) gcd b a % b a b int a a int b b public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int l[] = new int[n];
        int GCD = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (i == 0){
                GCD = tmp;
                continue;
            }
            GCD = gcd(GCD, tmp);
        }
        int cnt = 0;
        while (GCD % 2 == 0) {
            GCD/=2;
            cnt++;
        }
        
        
        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int l[] = new int[n];
        int GCD = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (i == 0){
                GCD = tmp;
                continue;
            }
            GCD = gcd(GCD, tmp);
        }
        int cnt = 0;
        while (GCD % 2 == 0) {
            GCD/=2;
            cnt++;
        }
        
        
        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int l[] = new int[n]; l new int[n] n int GCD = 0; GCD 0 for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (i == 0){
                GCD = tmp;
                continue;
            }
            GCD = gcd(GCD, tmp);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int tmp = sc.nextInt();
            if (i == 0){
                GCD = tmp;
                continue;
            }
            GCD = gcd(GCD, tmp);
        } {
            int tmp = sc.nextInt();
            if (i == 0){
                GCD = tmp;
                continue;
            }
            GCD = gcd(GCD, tmp);
        } int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc if (i == 0){
                GCD = tmp;
                continue;
            } i == 0 i 0 {
                GCD = tmp;
                continue;
            } GCD = tmp GCD tmp continue; GCD = gcd(GCD, tmp) GCD gcd(GCD, tmp) gcd GCD tmp int cnt = 0; cnt 0 while (GCD % 2 == 0) {
            GCD/=2;
            cnt++;
        } GCD % 2 == 0 GCD % 2 GCD 2 0 {
            GCD/=2;
            cnt++;
        } GCD/=2 GCD 2 cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
    static int gcd(int a, int b) {
        if (b == 0)
            return a;
        return gcd(b, a % b);
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int l[] = new int[n];
        int GCD = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (i == 0){
                GCD = tmp;
                continue;
            }
            GCD = gcd(GCD, tmp);
        }
        int cnt = 0;
        while (GCD % 2 == 0) {
            GCD/=2;
            cnt++;
        }
        
        
        System.out.println(cnt);
    }
} public class Main {
    static int gcd(int a, int b) {
        if (b == 0)
            return a;
        return gcd(b, a % b);
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int l[] = new int[n];
        int GCD = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (i == 0){
                GCD = tmp;
                continue;
            }
            GCD = gcd(GCD, tmp);
        }
        int cnt = 0;
        while (GCD % 2 == 0) {
            GCD/=2;
            cnt++;
        }
        
        
        System.out.println(cnt);
    }
} Main
import java.math.*;
import java.util.*;

public class Main {
    static int gcd(int a, int b) {
        if (b == 0)
            return a;
        return gcd(b, a % b);
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int l[] = new int[n];
        int GCD = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (i == 0){
                GCD = tmp;
                continue;
            }
            GCD = gcd(GCD, tmp);
        }
        int cnt = 0;
        while (GCD % 2 == 0) {
            GCD/=2;
            cnt++;
        }
        
        
        System.out.println(cnt);
    }
}
