import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numCount = scanner.nextInt();
        int[] array = new int[numCount];
        for(int i=0; i<numCount; i++) {
            array[i] = scanner.nextInt();
        }

        boolean isBreak = false;
        int dividedCnt = 0;
        while(!isBreak) {
            for(int j=0; j<array.length; j++) {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            }
            if(!isBreak) {
                dividedCnt++;
            }
        }
        System.out.println(dividedCnt);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numCount = scanner.nextInt();
        int[] array = new int[numCount];
        for(int i=0; i<numCount; i++) {
            array[i] = scanner.nextInt();
        }

        boolean isBreak = false;
        int dividedCnt = 0;
        while(!isBreak) {
            for(int j=0; j<array.length; j++) {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            }
            if(!isBreak) {
                dividedCnt++;
            }
        }
        System.out.println(dividedCnt);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numCount = scanner.nextInt();
        int[] array = new int[numCount];
        for(int i=0; i<numCount; i++) {
            array[i] = scanner.nextInt();
        }

        boolean isBreak = false;
        int dividedCnt = 0;
        while(!isBreak) {
            for(int j=0; j<array.length; j++) {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            }
            if(!isBreak) {
                dividedCnt++;
            }
        }
        System.out.println(dividedCnt);
    } main {
        Scanner scanner = new Scanner(System.in);
        int numCount = scanner.nextInt();
        int[] array = new int[numCount];
        for(int i=0; i<numCount; i++) {
            array[i] = scanner.nextInt();
        }

        boolean isBreak = false;
        int dividedCnt = 0;
        while(!isBreak) {
            for(int j=0; j<array.length; j++) {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            }
            if(!isBreak) {
                dividedCnt++;
            }
        }
        System.out.println(dividedCnt);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int numCount = scanner.nextInt(); numCount scanner.nextInt() scanner.nextInt scanner int[] array = new int[numCount]; array new int[numCount] numCount for(int i=0; i<numCount; i++) {
            array[i] = scanner.nextInt();
        } int i=0; int i=0; i 0 i<numCount i numCount i++ i++ i {
            array[i] = scanner.nextInt();
        } {
            array[i] = scanner.nextInt();
        } array[i] = scanner.nextInt() array[i] array i scanner.nextInt() scanner.nextInt scanner boolean isBreak = false; isBreak false int dividedCnt = 0; dividedCnt 0 while(!isBreak) {
            for(int j=0; j<array.length; j++) {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            }
            if(!isBreak) {
                dividedCnt++;
            }
        } !isBreak isBreak {
            for(int j=0; j<array.length; j++) {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            }
            if(!isBreak) {
                dividedCnt++;
            }
        } for(int j=0; j<array.length; j++) {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            } int j=0; int j=0; j 0 j<array.length j array.length array array.length j++ j++ j {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            } {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            } if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                } array[j] % 2 != 0 array[j] % 2 array[j] array j 2 0 {
                    isBreak = true;
                    break;
                } isBreak = true isBreak true break; array[j] = array[j] / 2 array[j] array j array[j] / 2 array[j] array j 2 if(!isBreak) {
                dividedCnt++;
            } !isBreak isBreak {
                dividedCnt++;
            } dividedCnt++ dividedCnt System.out.println(dividedCnt) System.out.println System.out System System.out dividedCnt String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numCount = scanner.nextInt();
        int[] array = new int[numCount];
        for(int i=0; i<numCount; i++) {
            array[i] = scanner.nextInt();
        }

        boolean isBreak = false;
        int dividedCnt = 0;
        while(!isBreak) {
            for(int j=0; j<array.length; j++) {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            }
            if(!isBreak) {
                dividedCnt++;
            }
        }
        System.out.println(dividedCnt);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numCount = scanner.nextInt();
        int[] array = new int[numCount];
        for(int i=0; i<numCount; i++) {
            array[i] = scanner.nextInt();
        }

        boolean isBreak = false;
        int dividedCnt = 0;
        while(!isBreak) {
            for(int j=0; j<array.length; j++) {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            }
            if(!isBreak) {
                dividedCnt++;
            }
        }
        System.out.println(dividedCnt);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numCount = scanner.nextInt();
        int[] array = new int[numCount];
        for(int i=0; i<numCount; i++) {
            array[i] = scanner.nextInt();
        }

        boolean isBreak = false;
        int dividedCnt = 0;
        while(!isBreak) {
            for(int j=0; j<array.length; j++) {
                if(array[j] % 2 != 0) {
                    isBreak = true;
                    break;
                }
                array[j] = array[j] / 2;
            }
            if(!isBreak) {
                dividedCnt++;
            }
        }
        System.out.println(dividedCnt);
    }
}
