#include using namespace std; #define rep(i,n) for(ll i=0;i=0;i--) #define lper(i,r,l) for(ll i=r-1;i>=l;i--) #define fi first #define se second #define all(x) (x).begin(),(x).end() #define CST(x) cout<; using vvl=vector>; using pl=pair; template inline bool chmin(T& a, T b){ if(a>b){a = b;return true;}return false;} template inline bool chmax(T& a, T b){ if(a>N; while (N--){ int a,b,c;cin>>a>>b>>c; info[--a]++; info[--b]++; info[--c]++; } int ans=0,count=0; rep(i,10){ ans+=info[i]/2; count+=info[i]%2; } cout<