import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> numbers = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            numbers.add(sc.nextInt());
        }

        int count = 1000000;
        int newCount = 0;
        boolean isEven = true;
        for (Integer number : numbers) {
            newCount = 0;
            isEven = true;
            while (isEven) {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            }
            if (count > newCount) {
                count = newCount;
            }
        }

        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> numbers = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            numbers.add(sc.nextInt());
        }

        int count = 1000000;
        int newCount = 0;
        boolean isEven = true;
        for (Integer number : numbers) {
            newCount = 0;
            isEven = true;
            while (isEven) {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            }
            if (count > newCount) {
                count = newCount;
            }
        }

        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> numbers = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            numbers.add(sc.nextInt());
        }

        int count = 1000000;
        int newCount = 0;
        boolean isEven = true;
        for (Integer number : numbers) {
            newCount = 0;
            isEven = true;
            while (isEven) {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            }
            if (count > newCount) {
                count = newCount;
            }
        }

        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> numbers = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            numbers.add(sc.nextInt());
        }

        int count = 1000000;
        int newCount = 0;
        boolean isEven = true;
        for (Integer number : numbers) {
            newCount = 0;
            isEven = true;
            while (isEven) {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            }
            if (count > newCount) {
                count = newCount;
            }
        }

        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> numbers = new ArrayList<>(); numbers new ArrayList<>() for (int i = 0; i < n; i++) {
            numbers.add(sc.nextInt());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            numbers.add(sc.nextInt());
        } {
            numbers.add(sc.nextInt());
        } numbers.add(sc.nextInt()) numbers.add numbers sc.nextInt() sc.nextInt sc int count = 1000000; count 1000000 int newCount = 0; newCount 0 boolean isEven = true; isEven true for (Integer number : numbers) {
            newCount = 0;
            isEven = true;
            while (isEven) {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            }
            if (count > newCount) {
                count = newCount;
            }
        } Integer number numbers {
            newCount = 0;
            isEven = true;
            while (isEven) {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            }
            if (count > newCount) {
                count = newCount;
            }
        } {
            newCount = 0;
            isEven = true;
            while (isEven) {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            }
            if (count > newCount) {
                count = newCount;
            }
        } newCount = 0 newCount 0 isEven = true isEven true while (isEven) {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            } isEven {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            } if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                } number % 2 == 0 number % 2 number 2 0 {
                    number = number / 2;
                    newCount++;
                } number = number / 2 number number / 2 number 2 newCount++ newCount {
                    isEven = false;
                } isEven = false isEven false if (count > newCount) {
                count = newCount;
            } count > newCount count newCount {
                count = newCount;
            } count = newCount count newCount 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) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> numbers = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            numbers.add(sc.nextInt());
        }

        int count = 1000000;
        int newCount = 0;
        boolean isEven = true;
        for (Integer number : numbers) {
            newCount = 0;
            isEven = true;
            while (isEven) {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            }
            if (count > newCount) {
                count = newCount;
            }
        }

        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> numbers = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            numbers.add(sc.nextInt());
        }

        int count = 1000000;
        int newCount = 0;
        boolean isEven = true;
        for (Integer number : numbers) {
            newCount = 0;
            isEven = true;
            while (isEven) {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            }
            if (count > newCount) {
                count = newCount;
            }
        }

        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> numbers = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            numbers.add(sc.nextInt());
        }

        int count = 1000000;
        int newCount = 0;
        boolean isEven = true;
        for (Integer number : numbers) {
            newCount = 0;
            isEven = true;
            while (isEven) {
                if (number % 2 == 0) {
                    number = number / 2;
                    newCount++;
                } else {
                    isEven = false;
                }
            }
            if (count > newCount) {
                count = newCount;
            }
        }

        System.out.println(count);
    }
}