import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = Integer.parseInt(sc.next());

    int pow2[] = new int[30];
    pow2[0] = 1;
    for (int i = 1; i < 30; i++) {
      pow2[i] = 2 * pow2[i - 1];
    }

    int ans=0;
    for(int i=0;i<N;i++) {
      int ai=Integer.parseInt(sc.next());;
      for(int j=1;j<30;j++) {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      }
    }
    
    System.out.println(ans);
  }
} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = Integer.parseInt(sc.next());

    int pow2[] = new int[30];
    pow2[0] = 1;
    for (int i = 1; i < 30; i++) {
      pow2[i] = 2 * pow2[i - 1];
    }

    int ans=0;
    for(int i=0;i<N;i++) {
      int ai=Integer.parseInt(sc.next());;
      for(int j=1;j<30;j++) {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      }
    }
    
    System.out.println(ans);
  }
} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = Integer.parseInt(sc.next());

    int pow2[] = new int[30];
    pow2[0] = 1;
    for (int i = 1; i < 30; i++) {
      pow2[i] = 2 * pow2[i - 1];
    }

    int ans=0;
    for(int i=0;i<N;i++) {
      int ai=Integer.parseInt(sc.next());;
      for(int j=1;j<30;j++) {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      }
    }
    
    System.out.println(ans);
  } main {

    Scanner sc = new Scanner(System.in);

    int N = Integer.parseInt(sc.next());

    int pow2[] = new int[30];
    pow2[0] = 1;
    for (int i = 1; i < 30; i++) {
      pow2[i] = 2 * pow2[i - 1];
    }

    int ans=0;
    for(int i=0;i<N;i++) {
      int ai=Integer.parseInt(sc.next());;
      for(int j=1;j<30;j++) {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      }
    }
    
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int pow2[] = new int[30]; pow2 new int[30] 30 pow2[0] = 1 pow2[0] pow2 0 1 for (int i = 1; i < 30; i++) {
      pow2[i] = 2 * pow2[i - 1];
    } int i = 1; int i = 1; i 1 i < 30 i 30 i++ i++ i {
      pow2[i] = 2 * pow2[i - 1];
    } {
      pow2[i] = 2 * pow2[i - 1];
    } pow2[i] = 2 * pow2[i - 1] pow2[i] pow2 i 2 * pow2[i - 1] 2 pow2[i - 1] pow2 i - 1 i 1 int ans=0; ans 0 for(int i=0;i<N;i++) {
      int ai=Integer.parseInt(sc.next());;
      for(int j=1;j<30;j++) {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      }
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      int ai=Integer.parseInt(sc.next());;
      for(int j=1;j<30;j++) {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      }
    } {
      int ai=Integer.parseInt(sc.next());;
      for(int j=1;j<30;j++) {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      }
    } int ai=Integer.parseInt(sc.next()); ai Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for(int j=1;j<30;j++) {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      } int j=1; int j=1; j 1 j<30 j 30 j++ j++ j {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      } {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      } if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        } ai%pow2[j]!=0 ai%pow2[j] ai pow2[j] pow2 j 0 {
          ans+=j-1;
          break;
        } ans+=j-1 ans j-1 j 1 break; if(j==29) {
          ans+=29;
          break;
        } j==29 j 29 {
          ans+=29;
          break;
        } ans+=29 ans 29 break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = Integer.parseInt(sc.next());

    int pow2[] = new int[30];
    pow2[0] = 1;
    for (int i = 1; i < 30; i++) {
      pow2[i] = 2 * pow2[i - 1];
    }

    int ans=0;
    for(int i=0;i<N;i++) {
      int ai=Integer.parseInt(sc.next());;
      for(int j=1;j<30;j++) {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      }
    }
    
    System.out.println(ans);
  }
} public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = Integer.parseInt(sc.next());

    int pow2[] = new int[30];
    pow2[0] = 1;
    for (int i = 1; i < 30; i++) {
      pow2[i] = 2 * pow2[i - 1];
    }

    int ans=0;
    for(int i=0;i<N;i++) {
      int ai=Integer.parseInt(sc.next());;
      for(int j=1;j<30;j++) {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      }
    }
    
    System.out.println(ans);
  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = Integer.parseInt(sc.next());

    int pow2[] = new int[30];
    pow2[0] = 1;
    for (int i = 1; i < 30; i++) {
      pow2[i] = 2 * pow2[i - 1];
    }

    int ans=0;
    for(int i=0;i<N;i++) {
      int ai=Integer.parseInt(sc.next());;
      for(int j=1;j<30;j++) {
        if(ai%pow2[j]!=0) {
          ans+=j-1;
          break;
        } else if(j==29) {
          ans+=29;
          break;
        }
      }
    }
    
    System.out.println(ans);
  }
}