#include<iostream>using namespace std;int main(){ int x,y,sum=0; while(x) { for(int i=0;i<5;i++) { cin>>x>>y>>z; if(x+y>z and x+z>y and z+y>x) sum++; }cout<<sum<<endl;
}}