#include <iostream>
using namespace std;
int n, i, cif, nr, num, gasit;
int main()
{
cout << "n= "; cin >> n;
cout << " introdu " << n << " numere naturale: " << "\n";
for (i=1; i<=n; ++i)
{
cin >> num;
if (num==0) gasit=1;
else gasit=0;
while (num && gasit==0)
{
cif=num%10;
if (cif==0) gasit=1;
num=num/10;
}
if (gasit) ++nr;
}
cout << nr;
}