a[11],s,n;main(t){for(scanf("%*d");~scanf("%d",&t);a[t]++);for(;++n<11;s+=a[n]*2-(a[n]&1));t=!printf("%d",s/4);}