/********************************************
 *Author*        :ZZZZone
 *Created Time*  : 六  9/29 23:41:20 2018

*********************************************/

#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <string>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <stack>
using namespace std;
#define debug(x) std::cerr << #x << " = " << (x) << std::endl
typedef pair<int, int> PII;
typedef long long LL;
typedef unsigned long long ULL;

inline void OPEN(string s){
	freopen((s + ".in").c_str(), "r", stdin);
	freopen((s + ".out").c_str(), "w", stdout);
}

int main()
{
	int a, b, c, ans = 0;
	scanf("%d %d %d", &a, &b, &c);
	if(a != b){
		if(a == c || b == c) ans = 2;
		else ans = 3;
	}
	else if(a == b){
		if (a == c) ans = 1;
		else ans = 2;
	}
	printf("%d\n", ans);
    return 0;
}
