
import java.util.*;
import static java.util.Map.Entry.comparingByValue;
import static java.util.stream.Collectors.toMap;

public class Main {

    public static void main(String[] args) {
        int C = 0;
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        Integer A[] = new Integer[N];
        boolean T = true;

        for (int I = 0; I < N; I++) {
            A[I] = Input.nextInt();
        }

        while (T) {
            for (int I = 0; I < N; I++) {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            }
       }
        System.out.println(C/N);
    }
} import java.util.*; util.* java import static java.util.Map.Entry.comparingByValue; import static java.util.Map.Entry.comparingByValue; import static java.util.Map.Entry.comparingByValue; import static java.util.stream.Collectors.toMap; import static java.util.stream.Collectors.toMap; import static java.util.stream.Collectors.toMap; public class Main {

    public static void main(String[] args) {
        int C = 0;
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        Integer A[] = new Integer[N];
        boolean T = true;

        for (int I = 0; I < N; I++) {
            A[I] = Input.nextInt();
        }

        while (T) {
            for (int I = 0; I < N; I++) {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            }
       }
        System.out.println(C/N);
    }
} Main public static void main(String[] args) {
        int C = 0;
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        Integer A[] = new Integer[N];
        boolean T = true;

        for (int I = 0; I < N; I++) {
            A[I] = Input.nextInt();
        }

        while (T) {
            for (int I = 0; I < N; I++) {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            }
       }
        System.out.println(C/N);
    } main {
        int C = 0;
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        Integer A[] = new Integer[N];
        boolean T = true;

        for (int I = 0; I < N; I++) {
            A[I] = Input.nextInt();
        }

        while (T) {
            for (int I = 0; I < N; I++) {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            }
       }
        System.out.println(C/N);
    } int C = 0; C 0 Scanner Input = new Scanner(System.in); Input new Scanner(System.in) int N = Input.nextInt(); N Input.nextInt() Input.nextInt Input Integer A[] = new Integer[N]; A new Integer[N] N boolean T = true; T true for (int I = 0; I < N; I++) {
            A[I] = Input.nextInt();
        } int I = 0; int I = 0; I 0 I < N I N I++ I++ I {
            A[I] = Input.nextInt();
        } {
            A[I] = Input.nextInt();
        } A[I] = Input.nextInt() A[I] A I Input.nextInt() Input.nextInt Input while (T) {
            for (int I = 0; I < N; I++) {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            }
       } T {
            for (int I = 0; I < N; I++) {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            }
       } for (int I = 0; I < N; I++) {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            } int I = 0; int I = 0; I 0 I < N I N I++ I++ I {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            } {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            } String S = A[I] + ""; S A[I] + "" A[I] A I "" if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                } Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0 Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 Integer.parseInt(S.charAt(S.length() - 1) + "") Integer.parseInt Integer S.charAt(S.length() - 1) + "" S.charAt(S.length() - 1) S.charAt S S.length() - 1 S.length() S.length S 1 "" 2 0 {
                    A[I] = A[I] / 2;
                     C++;
                } A[I] = A[I] / 2 A[I] A I A[I] / 2 A[I] A I 2 C++ C {
                    T = false;
                } T = false T false System.out.println(C/N) System.out.println System.out System System.out C/N C N String[] args args public class Main {

    public static void main(String[] args) {
        int C = 0;
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        Integer A[] = new Integer[N];
        boolean T = true;

        for (int I = 0; I < N; I++) {
            A[I] = Input.nextInt();
        }

        while (T) {
            for (int I = 0; I < N; I++) {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            }
       }
        System.out.println(C/N);
    }
} public class Main {

    public static void main(String[] args) {
        int C = 0;
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        Integer A[] = new Integer[N];
        boolean T = true;

        for (int I = 0; I < N; I++) {
            A[I] = Input.nextInt();
        }

        while (T) {
            for (int I = 0; I < N; I++) {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            }
       }
        System.out.println(C/N);
    }
} Main

import java.util.*;
import static java.util.Map.Entry.comparingByValue;
import static java.util.stream.Collectors.toMap;

public class Main {

    public static void main(String[] args) {
        int C = 0;
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        Integer A[] = new Integer[N];
        boolean T = true;

        for (int I = 0; I < N; I++) {
            A[I] = Input.nextInt();
        }

        while (T) {
            for (int I = 0; I < N; I++) {
                String S = A[I] + "";
                if (Integer.parseInt(S.charAt(S.length() - 1) + "") % 2 == 0) {
                    A[I] = A[I] / 2;
                     C++;
                } else {
                    T = false;
                }
            }
       }
        System.out.println(C/N);
    }
}
