import java.util.*;
import java.lang.*;
import java.io.*;
class Main {
Scanner scanner
= new Scanner
(System.
in); int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
int result;
/*if (a == b && b == c && a == c) {
System.out.print(1);
}
else if (a == b || b == c || a == c) {
System.out.print(2);
}
else {
System.out.print(3);
}*/
result = (a == b && b == c && a == c) ? 1 : (a == b || b == c || a == c) ? 2 : 3;
}
}
CmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwoKY2xhc3MgTWFpbiB7CgkKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbiB7CgoJCVNjYW5uZXIgc2Nhbm5lciA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJaW50IGEgPSBzY2FubmVyLm5leHRJbnQoKTsKCQlpbnQgYiA9IHNjYW5uZXIubmV4dEludCgpOwoJCWludCBjID0gc2Nhbm5lci5uZXh0SW50KCk7CgkJaW50IHJlc3VsdDsKCQkKCQkvKmlmIChhID09IGIgJiYgYiA9PSBjICYmIGEgPT0gYykgewoJCQlTeXN0ZW0ub3V0LnByaW50KDEpOwoJCX0KCQllbHNlIGlmIChhID09IGIgfHwgYiA9PSBjIHx8IGEgPT0gYykgewoJCQlTeXN0ZW0ub3V0LnByaW50KDIpOwoJCX0KCQllbHNlIHsKCQkJU3lzdGVtLm91dC5wcmludCgzKTsKCQl9Ki8KCQkKCQlyZXN1bHQgPSAoYSA9PSBiICYmIGIgPT0gYyAmJiBhID09IGMpID8gMSA6IChhID09IGIgfHwgYiA9PSBjIHx8IGEgPT0gYykgPyAyIDogMzsKCQkKCQlTeXN0ZW0ub3V0LnByaW50KHJlc3VsdCk7CgoJfQp9