/**
Sasha
              S2hhG933s..:;rr;;;;::::,:.;;:;;;;::;:rr::r9GGhh9X99    3X9hhh9Gh9h932          392h9GhhXh9hGhG9
           ,,rS22255SSSirsiisssr::;:;r:;;;;;;;;r;r;r:rrs29hGhhh399,   h9hhhhhG93h99;          XGXh99hh3G9hh9hS
           ;sSiiSSissr;rr;;::;:rssssrssrrrsssiisiissrsssShGGhhh99hsiS59999hhhh99h39          s39XG9h33GGh&GhG3
      :rr;;;;::::;;;;r;;r;;;:r;;rsr;r:;r;rrrs;sssirssSss29GGGGhhhhsS55hX9h9hhhh9999         ,X9h99Xh9hhhGhhhhX
 ,:::;:;;:::;;;:;;;;;;;rrrsrrsrrrrsrrrrr;issssiiiSir:, ,rX9hGhhGG9sSi59hhhhh9hG9hh2    ,,   i2hh29GG3hGhG99G9h
:;ssrr;rsrrr;;rsssssrrssiisriiiSSsriiSSiisssirsi ..,::,rs,22S2X2XX9X33h9hh9hhhh9392i  ..,,,,hS99hhG99G99hX3h93
;;;rrrssrssrss;sisrsiiiSSSSSSSS5525iSSiSsrrsir:,             ,522XS53hGhhhhhh9hh9XX5SiS2, ,;XX2999G39h9hh9hG9G
isr;;;;;;;:rssrsss5S5SSSSSS55SiSSs;s3GhXX5ir,     ,,.  ;, ..,s  :sXXhhG9h9hhG9hhhhXS5Si5s5iXXh9G9hG39hGhhhGX39
i5SrrssSssir:s;riSSSSSSSSSSSS22XS.,.,.:        :;,:;;r:,;Siis::;, 25hhh&3GGGGGhhh93h9XX5S55999GG3G99Gh9hG9Gh9G
r; :sS225ii53XSS5S52555X5XXXsS2hhhh9h2Xr    ;r;srrsssiSXiiiii:,,r.            ..:;;;:    ,s.. rssSs29999999h9h
iS5SS55555:,:;:r2552525X23  ,:;rrrssisi    :S2SsSSsiS252Ss;::;.  :. 3h99225SSisiiisssr;:,...,:,,r&X932522222XX
5222222XXX25X22X3XXX3XXX.    ,,:::;rs;  rSr;;sSsS5i5Siiss,,:.:r...,  r;r;rrrrsiiSS55XX39hhGGG&&A&hGGh9h332XXXX
222X2552252552XX3X2XXS233X2Sr:,,,:;r,  rr r5sS5SSsS25r;;;r::,;:i,,,, ,,,siiissiSS5Si5:;SXXX3339393XS3999999999
23222XX222XX32322222335S&GG&&G&G&hh3:,S.h9SiSr;,;srS,ss:rr5iirsr;:r;;,2X333333339593399999h939332iSSSX25SS5S53
X25X5522XX32X3X22XXX9hh93XXXX9hGG&9S S,9;::,:. ,..:,;.sssss5Ssis5;s;r:2399933399h9hh99999h9999Gh9X2h99hhhhh993
52X2522X255SS5 .is ,399999999999993:r;9i,,,,......,:,:;5rSS25Sii2SssS;59h&&&&&&&&GGGGGGGGh99hh&GGhhhhhhhh99999
5S2555S2S25S22S  i Gh9999hhhh999995siX9:......,,..,:rsi5Ss552SSS5Xsi5rS9GGG&&&&&&&&&&&&&&G&&&&&&&&&&&&&&&&&GGG
.:25ii,      SSi;,Xhh9h9h9999999995;i3r . ........,,r;iiXs2S55S553i5S;S2h&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
;.;r. .     s5X2XiGhhhhhhhhhh999992ri2s,,.......  ..;s;S222S5X5S23S2SiS5X3333999999hhG&&&AA&9393X39GG&&&&&&&&&
 ;.        SX3X239&hhhhhhhhhhhhh995S29S2S:,,,,,.    .rsS535S595259525SSS333999h999999999993h3999h99999999hh939
   ; ,ssi2552X2993S59&&&&&&&GGhhhh25X95S25;:ri55Ss:, ,ri5955592X5922S2i53X3339999h9999hh999h33999hh9hhhhhhhhhh
S522252X52522XX2Ss:XhG&&&A&ASi59&Gh5hXX33i  .i2Srrr;;:;SXh25Shh3X932S2SSX3XX333933399933993933399999999hhhhhhh
2222X35iSsi3325XGhhhhhhhhhhG2S     25:;rr...:rS9Ss;;;rsS39X22hG93992S5iS339333333993393333h999hhhhhhhhhhhhhhhh
S5522XS;ssS;s;5h9hhhhhhhhhhhhhhh9h9i ::  ;,,,,,SXXXir,,iX993XhGh93h2SSiiX39993339333993333G999hhhhhhhhhhhhhhhh
SS22i;r,   .  29hhhhhhhhhhhhhhh99h3;.;ss ,,. .,:::,....:29G93hhh33h255siX9hhh9hh9333333333G99999hhhhhhhhhhhhh9
XX225X2r      Ghhhhhhhhhhhhhhhh9h9Xs,sS , :;;r;::,,,  .,i9hh3h993995SSssXG&&&&&Ghhhhh9999hGGhhhhhhhhhhhhhhh999
355XX33525X55hh99hhhhhhhhhhhhhhhh32Srr;.;S5Si;rs;;,....,;3h92h933h35S5Sr2GA&Gh33hG&&&&&&A&&A&&&&&&&&&&&GGh9999
22X225SS59X9Srr:,&&&hh9hhhhhhhhh93XirSrrrr;;:,::rr;;,,,:s93329393h32SS5s53GGG&G&&&&&&&&&&&AA&&&&&&&&A&&&&&&&&&
2XSXXX3253Xi;,   &&&&&&Ar9A&Gh3 i,,:,S5:s33XX55rr;;::::r2XX329h33h322S2SSXGGGGGGGGGGGGGG&hhhhGGGG&&&&&h99339hG
2XX322523SirhGhGhGh99hA9.        ;siri5;iX55Sr;;rr;:rss2XXXX29h9X932XS2SS33GGGGGGGGGhhGG&hhhhGGGGhhhh9X39hhhhh
SS25XXXhhX5hGhGhhhhhhhhGG,s;;29s.5:XS5X3 rrr;;;:;;riS333X33229h9Xh9XX525iX939GGGGhhGGhhh&hhGGGhhGGGhhhhhhhhhhh
3X29X3hhX9h229hhhhhhhhhh9,. 59995s,s3ShX9rs;,,:;i53X33392X32X9993h9X3252i29XX9hGGGGh3333G939hhhhhGGGGhhhhhhhhh
33XSSr5   3hhhhhhhhhhGhhG3sSXSs9h.:,3X9Xh9h933hXXXXXX39SX235X9999h359X25Si2XX5XGGhhX2SS93933999hhGGGGhGhhhhhhh
53:      XGhhhGhhhhhhGhG39hGXi5XXi 559h3G333999X2XXXXXSXX2329h999h9S3X25Ss2X2252333X22iG2X3XX339hhhGGGGGGGGhhh
XS       ,2&GhGhGhhGGGhG9hh9hhh35;,2992h933XXX322222Xi5553X23h999h95X35Xis99h93iiS555S392222XX39hhhhhhGhGGGhhh
isr        ..&&GGGGGGGhX9GGhGGXi2Xs39935sXX52555S552S55523XX33993h2XX9S3si3X39h393XSSsGX2X2XXX999hhhhhGGGhhh99
 ,:. .  3iii3&&&&A&As9Gh&&G99hS3SrsSr5S:2X55SSiSS5255Si223XX99999h2X29S2SiSX393XX3SXG3&&&&&G999hhhhhhGhhh99999
  r:rSXX9h9GG93GG&&i.rh9&&h&G92iX:2. 5552SSSiiiSSSSSSS5X23X33399392X5hS5Si535992hXXs5hAA&&&&&&&&&&GGGGhhhh9999
s9:si:59h9hh9h9hhGh9G9hh9GhhSh:isrG9hAX;SiissiiiiisiS552XXX939933X252hS52ssi5s3Xh33XS29hh9G&&&&&&AAA&&&&&Ghh99
5922;i9hhG99h9Gh99hhhhGGG5SrX:3hX&&X9hrs,irrrsrssssi5S52X3Xh3333XX32235iXssS2ir3XXXXXi29GGGGGGGG&AA&A&&&A&&&&&
3352sXX9999hGh9hh9hhhGG&h5::GhG&&&hG35s:, i;;;;rrrsi5XXX33XG933XX2932XXi5iiSSSS999322XX3&GGGGGGGGGGhX3hG&&&&&&
25SiS9hh99hhh9993X3hGhGA,5GG3X&&&hhG2S;..   .rssisS9Xhh3333Gh3353X332X9SS5ii5SirGhhX2hX3&GGGGGGGhGGGGGhhhh99hh
;5sii59hhhGhh99hh99h3h329hX59&&GGh33Ssr:,.      .rG&XGhh9X3&h395h3X3529X5Xsi5i359G93X9SX&G&GGGGGGGGGGGhhhh9933
ss,iiii59G&Gh9Ghhhhh9G&52Xh&&GGhGG9Xsr,       ..2XGGGGhhXX9&&XXX99SXXX335SSs559iShh93X5S&9GGGGGGGGGGGGhh999999
.:.9G329hhG&&&&99hh9G&&39GG&GG :2GSr.          :hhGGG59hX3X&&32X395992X3532i5SX55Gh9329Sh&GGGGGGGGGGGGhh999999
, .&GGhGG3XG&G&&AAA9h&&XGGGGhGiX&i     .       i3hG9hG2h335GGh23Xh2SX55X53ii2SX55hhh929XX&GGGGGGGGGGGhGhhhhh99
:s3GGGGGGGGGGhhGGhhh&&GGGGhGGGhi,              h3hhXGG&2h3SGGG59S9SX5X252XXi5S2XGGhGh9GGSGGGGGGGGGGGGGGGGhhhhh
S2GGGGGGGGGGGGGGGh3h&&hGhG&h&3r                hGGhGhhGhhXi9h323522Xi22S25hiS293GhhhhhG&i&GGGGGGGGGGGGGGGhhhhh
X3GGGGGGGGGGGGGGG3G&&h&hGG9GX,                ;Ghh9h9GG923X3X3922S225S2S229559hhGGGGGhG&2&&&&&GGGGGGGGGGGGhhhh
3&GGGGGGGGGGGGGGGG&&GG&GGhG3,                 599933X999G239GSG2X2i22i2ii2922GGGG&Ghhhh2G&&&&&&A&&&GGGGGGGGGGG
X&GGGGGGGGGGGGGGh&&&hGG3GG5,.                 9X99292399hGX2hGGX22i5Xs25rX32X9GhGGGGhhh&&&&&&&A&&A&G&A&&GGGGGG
9h22GGGGGGGGGGG3hG&&hGGhGX,.     .            X2X93XX999hG535&hGX2S5Xi2Xrr929XhGGGhhGhGGGGGG&&&&&&&h939GG&&&&&
GX3hhhG&&&GGGGGG&&&&hGhGh2Sr                 ,Gh9hh999hh9G9523hh93XrXS3Gi:223XhhhGGhhhGGGGGGGGGGGhh&&&G99hGhGG
GGGG99&&&&&&&GG&GG&&hhGG9Xrr,rr              sGG9933hhGGhh3hSX99hh9iX259X;S29X9hhGGGhh&&GGGGGGGhGhGGGGhGG&&h93
GGGGGGGGh&&GGh3&&&G&h3h33;,,,,, ..           2&Gh9h9hGhhhG3hX53h99G2r5X92si39X9hhhhhGG&&GGGGhhhhhhhGGGGGGGGGhh
GGGGGGGGGGGhG&9G&&&&92XAs .      :           3&GGGGhGGhhhhhhh5h39hhXiSG32iSGhX99hhhhhh&&GGGGhhhh9hhhGGGGGGGGGG
GGGGGGGGGGGGh3G&&&&&9GG&.              ,     2&&3XGGGhhhhh99G599hhhXS9S32i299XG&Ghhhhh&&&GGGhh9999hhGhGGGGGGGG
GGGGGGGGGGGG9GG&&&&&23&s,          .  .     .i&G&&&GGGhhh399h29GhGGX2h35Xi93X9GhGGGGGG&&&GGhhhhhhhhhhhhhhhGGGh
GGGGGGGGGGG9hGG&&&&5A&.            ..,.   . .:GGGGhhGGGhGhhhhXhGGh9Xhh32X399GhhhGG&GGG&&GGGGhhhhhhhGGGGGGGGGGG
GGGGGGGGG&GhGGG&&&2AAh                 .....,rGG&GGhGhhhhh99hhhh99hh&h99hhhhhhhGhGh&G&&&GGGGGhhhGGGGhhGGGGGGGG
&&GGGGGGG99&G&&&&sA&GA       .         .   . ,3&GGhhhGGhhh9h9GGhhhhA&&GGGGGGGGhGhhhGG&&&&&GGGGGGGGGhhGGGGGGGGh
G&&&&GGG99hGG&&&h&&A&G        ,:.           .,SGGG&hGGhhhGh9hGGhhhhA&&&GGGGhGGGGhhhGh&&&&&&&&&GGGGhhGGGGGGGGGh
G&A&&&hG9GG&hGh&G&G&&&G; ...    .r:        .,,s&GGGhGGhhhh33hGhhhhG&&&&&GGGGGhhGhhhhG&&&&G&&&&G&&&GGGGGGGGGGGG
99h&G5X9hhhh&GG&GG&&&GGG9:..,;;ss:.:s,    ..,,,3&G&GGGh999h9hGGhGh&&&&&G&GGGGGGGhhhh&&&&&&&&&&G&GhG&GGGGGGGGGG
339h9G9hhG9&&G&&&h&&&G&GhA5;   .,,,;.,,;; ....:s&GGGGGh99339hGG&9&A&&&GGGG&hhGGGhhhh&&&Gh9GG&&&&&GGGGG&&&GGGGG
**/

#include <bits/stdc++.h>
#define int long long

using namespace std;

int gcd(int a, int b) {
    while (b) {
        int c = a;
        a = b;
        b = c % b;
    }
    return a;
}

int32_t main() {
    int n;
    cin >> n;
    int ans = 0;
    for (int i = 0; i < n; i++) {
        int x;
        cin >> x;
        while (x % 2 == 0) {
            x = x / 2;
            ans++;
        }
    }
    cout << ans << "\n";
    return 0;
}

Measured memory_bytes: 256