import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int[] nums = new int[a];
        for (int i = 0; i < a; i++) {
            nums[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        while (true) {
            boolean existOdd = false;
            for (int i = 0; i < a; i++) {
                if (nums[i] % 2 != 0) existOdd = true;
            }
            
            if (existOdd) break;
            
            for (int i = 0; i < a; i++) {
                nums[i] = nums[i] / 2;
            }
            cnt++;
        }
        
        System.out.println(cnt);
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int[] nums = new int[a];
        for (int i = 0; i < a; i++) {
            nums[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        while (true) {
            boolean existOdd = false;
            for (int i = 0; i < a; i++) {
                if (nums[i] % 2 != 0) existOdd = true;
            }
            
            if (existOdd) break;
            
            for (int i = 0; i < a; i++) {
                nums[i] = nums[i] / 2;
            }
            cnt++;
        }
        
        System.out.println(cnt);
        
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int[] nums = new int[a];
        for (int i = 0; i < a; i++) {
            nums[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        while (true) {
            boolean existOdd = false;
            for (int i = 0; i < a; i++) {
                if (nums[i] % 2 != 0) existOdd = true;
            }
            
            if (existOdd) break;
            
            for (int i = 0; i < a; i++) {
                nums[i] = nums[i] / 2;
            }
            cnt++;
        }
        
        System.out.println(cnt);
        
    } main {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int[] nums = new int[a];
        for (int i = 0; i < a; i++) {
            nums[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        while (true) {
            boolean existOdd = false;
            for (int i = 0; i < a; i++) {
                if (nums[i] % 2 != 0) existOdd = true;
            }
            
            if (existOdd) break;
            
            for (int i = 0; i < a; i++) {
                nums[i] = nums[i] / 2;
            }
            cnt++;
        }
        
        System.out.println(cnt);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] nums = new int[a]; nums new int[a] a for (int i = 0; i < a; i++) {
            nums[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            nums[i] = Integer.parseInt(sc.next());
        } {
            nums[i] = Integer.parseInt(sc.next());
        } nums[i] = Integer.parseInt(sc.next()) nums[i] nums i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int cnt = 0; cnt 0 while (true) {
            boolean existOdd = false;
            for (int i = 0; i < a; i++) {
                if (nums[i] % 2 != 0) existOdd = true;
            }
            
            if (existOdd) break;
            
            for (int i = 0; i < a; i++) {
                nums[i] = nums[i] / 2;
            }
            cnt++;
        } true {
            boolean existOdd = false;
            for (int i = 0; i < a; i++) {
                if (nums[i] % 2 != 0) existOdd = true;
            }
            
            if (existOdd) break;
            
            for (int i = 0; i < a; i++) {
                nums[i] = nums[i] / 2;
            }
            cnt++;
        } boolean existOdd = false; existOdd false for (int i = 0; i < a; i++) {
                if (nums[i] % 2 != 0) existOdd = true;
            } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
                if (nums[i] % 2 != 0) existOdd = true;
            } {
                if (nums[i] % 2 != 0) existOdd = true;
            } if (nums[i] % 2 != 0) existOdd = true; nums[i] % 2 != 0 nums[i] % 2 nums[i] nums i 2 0 existOdd = true existOdd true if (existOdd) break; existOdd break; for (int i = 0; i < a; i++) {
                nums[i] = nums[i] / 2;
            } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
                nums[i] = nums[i] / 2;
            } {
                nums[i] = nums[i] / 2;
            } nums[i] = nums[i] / 2 nums[i] nums i nums[i] / 2 nums[i] nums i 2 cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int[] nums = new int[a];
        for (int i = 0; i < a; i++) {
            nums[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        while (true) {
            boolean existOdd = false;
            for (int i = 0; i < a; i++) {
                if (nums[i] % 2 != 0) existOdd = true;
            }
            
            if (existOdd) break;
            
            for (int i = 0; i < a; i++) {
                nums[i] = nums[i] / 2;
            }
            cnt++;
        }
        
        System.out.println(cnt);
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int[] nums = new int[a];
        for (int i = 0; i < a; i++) {
            nums[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        while (true) {
            boolean existOdd = false;
            for (int i = 0; i < a; i++) {
                if (nums[i] % 2 != 0) existOdd = true;
            }
            
            if (existOdd) break;
            
            for (int i = 0; i < a; i++) {
                nums[i] = nums[i] / 2;
            }
            cnt++;
        }
        
        System.out.println(cnt);
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int[] nums = new int[a];
        for (int i = 0; i < a; i++) {
            nums[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        while (true) {
            boolean existOdd = false;
            for (int i = 0; i < a; i++) {
                if (nums[i] % 2 != 0) existOdd = true;
            }
            
            if (existOdd) break;
            
            for (int i = 0; i < a; i++) {
                nums[i] = nums[i] / 2;
            }
            cnt++;
        }
        
        System.out.println(cnt);
        
    }
}
