#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;c> n; for(int i=0;i> a >> b >> c; num[a]++;num[b]++;num[c]++; } for(int i=0;i<1000;i++){ ans += num[i]/2; num[i] %=2; } ll cnt = 0; for(int i=0;i<1000;i++) cnt+=num[i]; std::cout << ans + cnt/4 << '\n'; return 0; }