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