import java.util.*;
import java.util.Scanner;

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

               Scanner sc = new Scanner(System.in);
               int loop = sc.nextInt();
               int arr [] = new int [loop];
               boolean  go = true;
               for(int i = 0; i < loop; i++) {
                  arr[i] = sc.nextInt();
                  if(arr[i] % 2 != 0) {
                            go = false;
                  }    
    }

                   sc.close();
                int num = 0;
           
               while (go) {
                    for(int i = 0; i < loop; i++) {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         }
                     num++;      
} //-------- END while
              System.out.println(num);
        }
} import java.util.*; util.* java import java.util.Scanner; Scanner java.util public class Main {
      public static void main(String[] args) {

               Scanner sc = new Scanner(System.in);
               int loop = sc.nextInt();
               int arr [] = new int [loop];
               boolean  go = true;
               for(int i = 0; i < loop; i++) {
                  arr[i] = sc.nextInt();
                  if(arr[i] % 2 != 0) {
                            go = false;
                  }    
    }

                   sc.close();
                int num = 0;
           
               while (go) {
                    for(int i = 0; i < loop; i++) {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         }
                     num++;      
} //-------- END while
              System.out.println(num);
        }
} Main public static void main(String[] args) {

               Scanner sc = new Scanner(System.in);
               int loop = sc.nextInt();
               int arr [] = new int [loop];
               boolean  go = true;
               for(int i = 0; i < loop; i++) {
                  arr[i] = sc.nextInt();
                  if(arr[i] % 2 != 0) {
                            go = false;
                  }    
    }

                   sc.close();
                int num = 0;
           
               while (go) {
                    for(int i = 0; i < loop; i++) {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         }
                     num++;      
} //-------- END while
              System.out.println(num);
        } main {

               Scanner sc = new Scanner(System.in);
               int loop = sc.nextInt();
               int arr [] = new int [loop];
               boolean  go = true;
               for(int i = 0; i < loop; i++) {
                  arr[i] = sc.nextInt();
                  if(arr[i] % 2 != 0) {
                            go = false;
                  }    
    }

                   sc.close();
                int num = 0;
           
               while (go) {
                    for(int i = 0; i < loop; i++) {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         }
                     num++;      
} //-------- END while
              System.out.println(num);
        } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int loop = sc.nextInt(); loop sc.nextInt() sc.nextInt sc int arr [] = new int [loop]; arr new int [loop] loop boolean  go = true; go true for(int i = 0; i < loop; i++) {
                  arr[i] = sc.nextInt();
                  if(arr[i] % 2 != 0) {
                            go = false;
                  }    
    } int i = 0; int i = 0; i 0 i < loop i loop i++ i++ i {
                  arr[i] = sc.nextInt();
                  if(arr[i] % 2 != 0) {
                            go = false;
                  }    
    } {
                  arr[i] = sc.nextInt();
                  if(arr[i] % 2 != 0) {
                            go = false;
                  }    
    } arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc if(arr[i] % 2 != 0) {
                            go = false;
                  } arr[i] % 2 != 0 arr[i] % 2 arr[i] arr i 2 0 {
                            go = false;
                  } go = false go false sc.close() sc.close sc int num = 0; num 0 while (go) {
                    for(int i = 0; i < loop; i++) {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         }
                     num++;      
} //-------- END while go {
                    for(int i = 0; i < loop; i++) {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         }
                     num++;      
} for(int i = 0; i < loop; i++) {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         } int i = 0; int i = 0; i 0 i < loop i loop i++ i++ i {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         } {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         } arr[i] /= 2 arr[i] arr i 2 if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 } arr[i] % 2  != 0 arr[i] % 2 arr[i] arr i 2 0 {
                          go = false;
                         break;
                 } go = false go false break; num++ num System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {
      public static void main(String[] args) {

               Scanner sc = new Scanner(System.in);
               int loop = sc.nextInt();
               int arr [] = new int [loop];
               boolean  go = true;
               for(int i = 0; i < loop; i++) {
                  arr[i] = sc.nextInt();
                  if(arr[i] % 2 != 0) {
                            go = false;
                  }    
    }

                   sc.close();
                int num = 0;
           
               while (go) {
                    for(int i = 0; i < loop; i++) {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         }
                     num++;      
} //-------- END while
              System.out.println(num);
        }
} public class Main {
      public static void main(String[] args) {

               Scanner sc = new Scanner(System.in);
               int loop = sc.nextInt();
               int arr [] = new int [loop];
               boolean  go = true;
               for(int i = 0; i < loop; i++) {
                  arr[i] = sc.nextInt();
                  if(arr[i] % 2 != 0) {
                            go = false;
                  }    
    }

                   sc.close();
                int num = 0;
           
               while (go) {
                    for(int i = 0; i < loop; i++) {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         }
                     num++;      
} //-------- END while
              System.out.println(num);
        }
} Main
import java.util.*;
import java.util.Scanner;

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

               Scanner sc = new Scanner(System.in);
               int loop = sc.nextInt();
               int arr [] = new int [loop];
               boolean  go = true;
               for(int i = 0; i < loop; i++) {
                  arr[i] = sc.nextInt();
                  if(arr[i] % 2 != 0) {
                            go = false;
                  }    
    }

                   sc.close();
                int num = 0;
           
               while (go) {
                    for(int i = 0; i < loop; i++) {
                          arr[i] /= 2;
                          if(arr[i] % 2  != 0) {
                          go = false;
                         break;
                 }
         }
                     num++;      
} //-------- END while
              System.out.println(num);
        }
}