#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c,d=0;
    cin>>a>>b>>c;
    if(a>=90) d++;
    if(b>=90) d++;
    if(c>=90) d++;
    cout<<d;
}
/**************************************************************
	Problem: 1678
	User: wangyiyang
	Language: C++
	Result: Accepted
	Time:14 ms
	Memory:2072 kb
****************************************************************/