import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = 0;
        boolean isContinue = true;
        int n = Integer.parseInt(sc.nextLine());
        String[] list = sc.nextLine().split(" ");
        sc.close();
        while (isContinue) {
            for (int i = 0; i < n; i++) {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            }
            if (isContinue) {
                count++;
            }
        }
        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 count = 0;
        boolean isContinue = true;
        int n = Integer.parseInt(sc.nextLine());
        String[] list = sc.nextLine().split(" ");
        sc.close();
        while (isContinue) {
            for (int i = 0; i < n; i++) {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            }
            if (isContinue) {
                count++;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = 0;
        boolean isContinue = true;
        int n = Integer.parseInt(sc.nextLine());
        String[] list = sc.nextLine().split(" ");
        sc.close();
        while (isContinue) {
            for (int i = 0; i < n; i++) {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            }
            if (isContinue) {
                count++;
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int count = 0;
        boolean isContinue = true;
        int n = Integer.parseInt(sc.nextLine());
        String[] list = sc.nextLine().split(" ");
        sc.close();
        while (isContinue) {
            for (int i = 0; i < n; i++) {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            }
            if (isContinue) {
                count++;
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = 0; count 0 boolean isContinue = true; isContinue true int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String[] list = sc.nextLine().split(" "); list sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " sc.close() sc.close sc while (isContinue) {
            for (int i = 0; i < n; i++) {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            }
            if (isContinue) {
                count++;
            }
        } isContinue {
            for (int i = 0; i < n; i++) {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            }
            if (isContinue) {
                count++;
            }
        } for (int i = 0; i < n; i++) {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            } {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            } Integer val = Integer.parseInt(list[i]); val Integer.parseInt(list[i]) Integer.parseInt Integer list[i] list i if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                } val % 2 == 0 val % 2 val 2 0 {
                    list[i] = String.valueOf(val / 2);
                } list[i] = String.valueOf(val / 2) list[i] list i String.valueOf(val / 2) String.valueOf String val / 2 val 2 {
                    isContinue = false;
                    break;
                } isContinue = false isContinue false break; if (isContinue) {
                count++;
            } isContinue {
                count++;
            } 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) {
        Scanner sc = new Scanner(System.in);
        int count = 0;
        boolean isContinue = true;
        int n = Integer.parseInt(sc.nextLine());
        String[] list = sc.nextLine().split(" ");
        sc.close();
        while (isContinue) {
            for (int i = 0; i < n; i++) {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            }
            if (isContinue) {
                count++;
            }
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = 0;
        boolean isContinue = true;
        int n = Integer.parseInt(sc.nextLine());
        String[] list = sc.nextLine().split(" ");
        sc.close();
        while (isContinue) {
            for (int i = 0; i < n; i++) {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            }
            if (isContinue) {
                count++;
            }
        }
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = 0;
        boolean isContinue = true;
        int n = Integer.parseInt(sc.nextLine());
        String[] list = sc.nextLine().split(" ");
        sc.close();
        while (isContinue) {
            for (int i = 0; i < n; i++) {
                Integer val = Integer.parseInt(list[i]);
                if (val % 2 == 0) {
                    list[i] = String.valueOf(val / 2);
                } else {
                    isContinue = false;
                    break;
                }
            }
            if (isContinue) {
                count++;
            }
        }
        System.out.println(count);
    }
}