#include <iostream>
#define MAX 101
using namespace std;
int a[MAX];
int main() {
int n, l, res = 0, i;
cin >> n;
for(l = 0; l < n; l++) cin >> i, a[i]++;
for(i = 1; i <= MAX - 1; i++) res += a[i] / 4;
cout << res << "\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojZGVmaW5lIE1BWCAxMDEKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBhW01BWF07CgppbnQgbWFpbigpIHsKCWludCBuLCBsLCByZXMgPSAwLCBpOwoJY2luID4+IG47Cglmb3IobCA9IDA7IGwgPCBuOyBsKyspIGNpbiA+PiBpLCBhW2ldKys7Cglmb3IoaSA9IDE7IGkgPD0gTUFYIC0gMTsgaSsrKSByZXMgKz0gYVtpXSAvIDQ7Cgljb3V0IDw8IHJlcyA8PCAiXG4iOwoJcmV0dXJuIDA7Cn0=