#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,s,d,f,g,h,j;
    cin>>a>>s>>d;
    if(a>=90){
        f=1;
    }else{
        f=0;
    }if(s>=90){
        g=1;
    }else{
        g=0;
    }if(d>=90){
        h=1;
    }else{
        h=0;
    }j=f+g+h;
    cout<<j;
    }
/**************************************************************
	Problem: 1678
	User: zhangyilei
	Language: C++
	Result: Accepted
	Time:19 ms
	Memory:2072 kb
****************************************************************/