#include using namespace std; int main() { int item[11] = {0}; int N, n, cnt = 0; int power = 0; cin >> N; for(int i=0; i> n; if(item[n] == 1){ power++; item[n] = 0; }else item[n] = 1; } } for(int i=1; i<11; i++){ if(item[i] == 1) cnt++; } power += cnt/4; cout << power << endl; return 0; }