#include <bits/stdc++.h>
using namespace std;
long long a[1000],i,n,dem;
int main()
{
freopen("dl.inp","r",stdin);
freopen("dl.dat","w",stdout);
cin>>n;
for (i=1; i<=n; i++) cin>>a[i];
dem=0;
for (i=1; i<=n; i++)
if (a[i]==10) dem++;
cout<<dem;
return 0;
}