#41948: easy~


yp11351280@yphs.tp.edu.tw (810-43韓睿哲)


#include<bits/stdc++.h>
using namespace std;
int main(){
    int a, b=0, c,d,e;
    for(int f=1;f<6;f++){
        cin>>c>>d>>e;
        if(c<d+e&&d<c+e&&e<d+c)
            b+=1;
        else
            b=b;
    }
    cout<<b<<endl;
}