#include <bits/stdc++.h>
int main() {
  int a, b, c, s = 0;
  scanf("%d %d %d", &a, &b, &c);
  if (a != b) {
    if (a == c || b == c)
      s = 2;
    else
      s = 3;
  } else if (a == b) {
    if (a == c)
      s = 1;
    else
      s = 2;
  }
  printf("%d\n", s);
  return 0;
}
