import java.util.*;


public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int count = 0;
        int numberCount = sc.nextInt();
        long[] numbers = new long[numberCount];
        for (int i = 0; i < numbers.length; i++) {
            numbers[i] = sc.nextLong();
        }
        
        while (true) {
            boolean end = false;
            for (int i = 0; i < numbers.length; i++) {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            }
            
            if (end) break;
            count++;
        }
        
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int count = 0;
        int numberCount = sc.nextInt();
        long[] numbers = new long[numberCount];
        for (int i = 0; i < numbers.length; i++) {
            numbers[i] = sc.nextLong();
        }
        
        while (true) {
            boolean end = false;
            for (int i = 0; i < numbers.length; i++) {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            }
            
            if (end) break;
            count++;
        }
        
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int count = 0;
        int numberCount = sc.nextInt();
        long[] numbers = new long[numberCount];
        for (int i = 0; i < numbers.length; i++) {
            numbers[i] = sc.nextLong();
        }
        
        while (true) {
            boolean end = false;
            for (int i = 0; i < numbers.length; i++) {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            }
            
            if (end) break;
            count++;
        }
        
        System.out.println(count);
    } main {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int count = 0;
        int numberCount = sc.nextInt();
        long[] numbers = new long[numberCount];
        for (int i = 0; i < numbers.length; i++) {
            numbers[i] = sc.nextLong();
        }
        
        while (true) {
            boolean end = false;
            for (int i = 0; i < numbers.length; i++) {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            }
            
            if (end) break;
            count++;
        }
        
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = 0; count 0 int numberCount = sc.nextInt(); numberCount sc.nextInt() sc.nextInt sc long[] numbers = new long[numberCount]; numbers new long[numberCount] numberCount for (int i = 0; i < numbers.length; i++) {
            numbers[i] = sc.nextLong();
        } int i = 0; int i = 0; i 0 i < numbers.length i numbers.length numbers numbers.length i++ i++ i {
            numbers[i] = sc.nextLong();
        } {
            numbers[i] = sc.nextLong();
        } numbers[i] = sc.nextLong() numbers[i] numbers i sc.nextLong() sc.nextLong sc while (true) {
            boolean end = false;
            for (int i = 0; i < numbers.length; i++) {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            }
            
            if (end) break;
            count++;
        } true {
            boolean end = false;
            for (int i = 0; i < numbers.length; i++) {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            }
            
            if (end) break;
            count++;
        } boolean end = false; end false for (int i = 0; i < numbers.length; i++) {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            } int i = 0; int i = 0; i 0 i < numbers.length i numbers.length numbers numbers.length i++ i++ i {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            } {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            } if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                } numbers[i] % 2 == 1 numbers[i] % 2 numbers[i] numbers i 2 1 {
                    end = true;
                    break;
                } end = true end true break; numbers[i] = numbers[i] / 2 numbers[i] numbers i numbers[i] / 2 numbers[i] numbers i 2 if (end) break; end break; count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int count = 0;
        int numberCount = sc.nextInt();
        long[] numbers = new long[numberCount];
        for (int i = 0; i < numbers.length; i++) {
            numbers[i] = sc.nextLong();
        }
        
        while (true) {
            boolean end = false;
            for (int i = 0; i < numbers.length; i++) {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            }
            
            if (end) break;
            count++;
        }
        
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int count = 0;
        int numberCount = sc.nextInt();
        long[] numbers = new long[numberCount];
        for (int i = 0; i < numbers.length; i++) {
            numbers[i] = sc.nextLong();
        }
        
        while (true) {
            boolean end = false;
            for (int i = 0; i < numbers.length; i++) {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            }
            
            if (end) break;
            count++;
        }
        
        System.out.println(count);
    }
} Main
import java.util.*;


public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int count = 0;
        int numberCount = sc.nextInt();
        long[] numbers = new long[numberCount];
        for (int i = 0; i < numbers.length; i++) {
            numbers[i] = sc.nextLong();
        }
        
        while (true) {
            boolean end = false;
            for (int i = 0; i < numbers.length; i++) {
                if (numbers[i] % 2 == 1) {
                    end = true;
                    break;
                }
                
                numbers[i] = numbers[i] / 2;
            }
            
            if (end) break;
            count++;
        }
        
        System.out.println(count);
    }
}