#include<bits/stdc++.h>
using namespace std;
int main()
{
int cnt5=0,cnt2=0,x;
for(int k=0;k<100;k++)
{
cin>>x;
int i=x;
while(x%5==0)
{
cnt5++;
x/=5;
}
while(i%2==0)
{
cnt2++;
i/=2;
}
}
if(cnt2>cnt5)
cout<<cnt2;
else
cout<<cnt5;
return 0;
}
c/c++范围太大,因为10=5*2,所以统计乘积中有多少个5和2的因子,一般5比2少,可以不用cnt2