#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main(){
        vector<double> num;
        double h;
        while(cin >> h){
                num.push_back(h);
        }
        sort(num.begin(), num.end());
        cout << num.end() - num.begin() << endl;
        return 0;
}