#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  if (a == b && b == c) {
    cout << "1" << endl;
  }
  if (a == b && a != c) {
    cout << "2" << endl;
  }
  if (a == b && a != c) {
    cout << "2" << endl;
  }
  if (b == c && b != a) {
    cout << "2" << endl;
  } else {
    cout << "3" << endl;
  }
}
