#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: yangjunwen
Language: C++
Result: Accepted
Time:9 ms
Memory:2072 kb
****************************************************************/