1 #include <iostream> 2 using namespace std; 3 int main(){ 4 int n,i,sum=0,a[1002][3]; 5 ios::sync_with_stdio(false); 6 cin>>n; 7 for(i=0;i<n;i++){ 8 cin>>a[i][0]>>a[i][1]>>a[i][2]; 9 if((a[i][0]+a[i][1]+a[i][2])>=2) sum++; 10 } 11 cout<<sum<<endl; 12 return 0; 13 }