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