import std.format;
import std.stdio;
import std.string;


void main() {
  int a,b,c;
  string s = readln.strip;
  formattedRead(s, " %s %s %s", &a, &b, &c);

  int ans = 3;
  if (a == b && b == c)
    ans = 1;
  else if (a == b || b == c || c == a)
    ans = 2;

  writeln(ans);
}
