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