#include using namespace std; int main() { int N,a,i,up=0,sum=0; vector power(10); cin>>N; for(i=0;i<3*N;i++){ cin>>a; power[a]++; } for(i=1;i<=10;i++){ up+=(power[i]/2); if(power[i]%2) sum+=1; } up+=sum/4; cout<