import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {
    
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      int n = Integer.parseInt(in.readLine());
      String line = in.readLine();
      int ans = 0;

      char regex = ' ';
      boolean isContinue = true;
      for(int ai=0, offset=0, next=0 ; isContinue; offset = ++next) {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      }

      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {
    
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      int n = Integer.parseInt(in.readLine());
      String line = in.readLine();
      int ans = 0;

      char regex = ' ';
      boolean isContinue = true;
      for(int ai=0, offset=0, next=0 ; isContinue; offset = ++next) {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      }

      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} Main public static void main(String[] args) {
    new Main().run();
  } main {
    new Main().run();
  } new Main().run() new Main().run new Main() String[] args args public void run() {
    
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      int n = Integer.parseInt(in.readLine());
      String line = in.readLine();
      int ans = 0;

      char regex = ' ';
      boolean isContinue = true;
      for(int ai=0, offset=0, next=0 ; isContinue; offset = ++next) {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      }

      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } run {
    
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      int n = Integer.parseInt(in.readLine());
      String line = in.readLine();
      int ans = 0;

      char regex = ' ';
      boolean isContinue = true;
      for(int ai=0, offset=0, next=0 ; isContinue; offset = ++next) {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      }

      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      int n = Integer.parseInt(in.readLine());
      String line = in.readLine();
      int ans = 0;

      char regex = ' ';
      boolean isContinue = true;
      for(int ai=0, offset=0, next=0 ; isContinue; offset = ++next) {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      }

      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    } catch(IOException e) {
      System.err.println(e);
    } IOException e {
      System.err.println(e);
    } System.err.println(e) System.err.println System.err System System.err e {

      int n = Integer.parseInt(in.readLine());
      String line = in.readLine();
      int ans = 0;

      char regex = ' ';
      boolean isContinue = true;
      for(int ai=0, offset=0, next=0 ; isContinue; offset = ++next) {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      }

      System.out.println(ans);
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(in.readLine()); n Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in String line = in.readLine(); line in.readLine() in.readLine in int ans = 0; ans 0 char regex = ' '; regex ' ' boolean isContinue = true; isContinue true for(int ai=0, offset=0, next=0 ; isContinue; offset = ++next) {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      } int ai=0, offset=0, next=0 ; int ai=0 ai 0 offset=0 offset 0 next=0 ; next 0 isContinue offset = ++next offset = ++next offset ++next next {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      } {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      } if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        } (next = line.indexOf(regex, offset)) == -1 (next = line.indexOf(regex, offset)) next line.indexOf(regex, offset) line.indexOf line regex offset -1 1 {
          next = line.length();
          isContinue = false;
        } next = line.length() next line.length() line.length line isContinue = false isContinue false ai = Integer.parseInt(line.substring(offset, next)) ai Integer.parseInt(line.substring(offset, next)) Integer.parseInt Integer line.substring(offset, next) line.substring line offset next ans += Integer.numberOfTrailingZeros(ai) ans Integer.numberOfTrailingZeros(ai) Integer.numberOfTrailingZeros Integer ai System.out.println(ans) System.out.println System.out System System.out ans public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {
    
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      int n = Integer.parseInt(in.readLine());
      String line = in.readLine();
      int ans = 0;

      char regex = ' ';
      boolean isContinue = true;
      for(int ai=0, offset=0, next=0 ; isContinue; offset = ++next) {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      }

      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {
    
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      int n = Integer.parseInt(in.readLine());
      String line = in.readLine();
      int ans = 0;

      char regex = ' ';
      boolean isContinue = true;
      for(int ai=0, offset=0, next=0 ; isContinue; offset = ++next) {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      }

      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {
    
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      int n = Integer.parseInt(in.readLine());
      String line = in.readLine();
      int ans = 0;

      char regex = ' ';
      boolean isContinue = true;
      for(int ai=0, offset=0, next=0 ; isContinue; offset = ++next) {
        if((next = line.indexOf(regex, offset)) == -1) {
          next = line.length();
          isContinue = false;
        }

        ai = Integer.parseInt(line.substring(offset, next));
        ans += Integer.numberOfTrailingZeros(ai);
      }

      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
}