import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

class Main {
    public static void main(final String[] args) throws Exception {

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {
            int N = Integer.parseInt(br.readLine());
            List<String> inputNumberString = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();
            for (String str : inputNumberString) {
                numbers.add(Integer.parseInt(str));
            }

            int ans = 0;
            while (checkOdd(numbers, N)) {
                for (int i = 0; i < N; i++) {
                    numbers.set(i, numbers.get(i) / 2);
                }
                ans++;
            }

            System.out.println(ans);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }

    private static boolean checkOdd(List<Integer> numbers, int N) {
        int j = 0;
        for (int i = 0; i < N; i++) {
            if (numbers.get(i) % 2 != 0) {
                break;
            } else {
                j++;
            }
        }
        
        return j == N;
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.HashSet; HashSet java.util import java.util.List; List java.util import java.util.Set; Set java.util import java.util.TreeSet; TreeSet java.util class Main {
    public static void main(final String[] args) throws Exception {

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {
            int N = Integer.parseInt(br.readLine());
            List<String> inputNumberString = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();
            for (String str : inputNumberString) {
                numbers.add(Integer.parseInt(str));
            }

            int ans = 0;
            while (checkOdd(numbers, N)) {
                for (int i = 0; i < N; i++) {
                    numbers.set(i, numbers.get(i) / 2);
                }
                ans++;
            }

            System.out.println(ans);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }

    private static boolean checkOdd(List<Integer> numbers, int N) {
        int j = 0;
        for (int i = 0; i < N; i++) {
            if (numbers.get(i) % 2 != 0) {
                break;
            } else {
                j++;
            }
        }
        
        return j == N;
    }
} Main public static void main(final String[] args) throws Exception {

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {
            int N = Integer.parseInt(br.readLine());
            List<String> inputNumberString = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();
            for (String str : inputNumberString) {
                numbers.add(Integer.parseInt(str));
            }

            int ans = 0;
            while (checkOdd(numbers, N)) {
                for (int i = 0; i < N; i++) {
                    numbers.set(i, numbers.get(i) / 2);
                }
                ans++;
            }

            System.out.println(ans);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } main {

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {
            int N = Integer.parseInt(br.readLine());
            List<String> inputNumberString = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();
            for (String str : inputNumberString) {
                numbers.add(Integer.parseInt(str));
            }

            int ans = 0;
            while (checkOdd(numbers, N)) {
                for (int i = 0; i < N; i++) {
                    numbers.set(i, numbers.get(i) / 2);
                }
                ans++;
            }

            System.out.println(ans);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {
            int N = Integer.parseInt(br.readLine());
            List<String> inputNumberString = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();
            for (String str : inputNumberString) {
                numbers.add(Integer.parseInt(str));
            }

            int ans = 0;
            while (checkOdd(numbers, N)) {
                for (int i = 0; i < N; i++) {
                    numbers.set(i, numbers.get(i) / 2);
                }
                ans++;
            }

            System.out.println(ans);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } IOException | NumberFormatException e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } final Exception e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 {
            int N = Integer.parseInt(br.readLine());
            List<String> inputNumberString = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();
            for (String str : inputNumberString) {
                numbers.add(Integer.parseInt(str));
            }

            int ans = 0;
            while (checkOdd(numbers, N)) {
                for (int i = 0; i < N; i++) {
                    numbers.set(i, numbers.get(i) / 2);
                }
                ans++;
            }

            System.out.println(ans);
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br List<String> inputNumberString = Arrays.asList(br.readLine().split(" ")); inputNumberString Arrays.asList(br.readLine().split(" ")) Arrays.asList Arrays br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " List<Integer> numbers = new ArrayList<>(); numbers new ArrayList<>() for (String str : inputNumberString) {
                numbers.add(Integer.parseInt(str));
            } String str inputNumberString {
                numbers.add(Integer.parseInt(str));
            } {
                numbers.add(Integer.parseInt(str));
            } numbers.add(Integer.parseInt(str)) numbers.add numbers Integer.parseInt(str) Integer.parseInt Integer str int ans = 0; ans 0 while (checkOdd(numbers, N)) {
                for (int i = 0; i < N; i++) {
                    numbers.set(i, numbers.get(i) / 2);
                }
                ans++;
            } checkOdd(numbers, N) checkOdd numbers N {
                for (int i = 0; i < N; i++) {
                    numbers.set(i, numbers.get(i) / 2);
                }
                ans++;
            } for (int i = 0; i < N; i++) {
                    numbers.set(i, numbers.get(i) / 2);
                } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                    numbers.set(i, numbers.get(i) / 2);
                } {
                    numbers.set(i, numbers.get(i) / 2);
                } numbers.set(i, numbers.get(i) / 2) numbers.set numbers i numbers.get(i) / 2 numbers.get(i) numbers.get numbers i 2 ans++ ans System.out.println(ans) System.out.println System.out System System.out ans final String[] args args private static boolean checkOdd(List<Integer> numbers, int N) {
        int j = 0;
        for (int i = 0; i < N; i++) {
            if (numbers.get(i) % 2 != 0) {
                break;
            } else {
                j++;
            }
        }
        
        return j == N;
    } checkOdd {
        int j = 0;
        for (int i = 0; i < N; i++) {
            if (numbers.get(i) % 2 != 0) {
                break;
            } else {
                j++;
            }
        }
        
        return j == N;
    } int j = 0; j 0 for (int i = 0; i < N; i++) {
            if (numbers.get(i) % 2 != 0) {
                break;
            } else {
                j++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if (numbers.get(i) % 2 != 0) {
                break;
            } else {
                j++;
            }
        } {
            if (numbers.get(i) % 2 != 0) {
                break;
            } else {
                j++;
            }
        } if (numbers.get(i) % 2 != 0) {
                break;
            } else {
                j++;
            } numbers.get(i) % 2 != 0 numbers.get(i) % 2 numbers.get(i) numbers.get numbers i 2 0 {
                break;
            } break; {
                j++;
            } j++ j return j == N; j == N j N List<Integer> numbers numbers int N N
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

class Main {
    public static void main(final String[] args) throws Exception {

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {
            int N = Integer.parseInt(br.readLine());
            List<String> inputNumberString = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();
            for (String str : inputNumberString) {
                numbers.add(Integer.parseInt(str));
            }

            int ans = 0;
            while (checkOdd(numbers, N)) {
                for (int i = 0; i < N; i++) {
                    numbers.set(i, numbers.get(i) / 2);
                }
                ans++;
            }

            System.out.println(ans);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }

    private static boolean checkOdd(List<Integer> numbers, int N) {
        int j = 0;
        for (int i = 0; i < N; i++) {
            if (numbers.get(i) % 2 != 0) {
                break;
            } else {
                j++;
            }
        }
        
        return j == N;
    }
}