#include <iostream>
using namespace std;
int main()
{
int n = 3;
int a[n];
int j = 3;
for( int i=0 ; i<n ; i++ )
{
cin >> a[i];
}
if( a[0] == a[1] && a[1] == a[2] )
{
cout << 1 << endl;
}
else if( a[0] == a[1] || a[1]==a[2] || a[0]==a[2])
{
cout <<2 << endl;
}
else
{
cout << 3 << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICBpbnQgbiA9IDM7CiAgIGludCBhW25dOwogICBpbnQgaiA9IDM7CiAgIGZvciggaW50IGk9MCA7IGk8biA7IGkrKyApCiAgIHsKICAgICAgIGNpbiA+PiBhW2ldOwogICB9CiAgIGlmKCBhWzBdID09IGFbMV0gJiYgYVsxXSA9PSBhWzJdICkKICAgewogICAgICAgY291dCA8PCAxIDw8IGVuZGw7CiAgICAgICAKICAgfQogICBlbHNlIGlmKCBhWzBdID09IGFbMV0gfHwgYVsxXT09YVsyXSB8fCBhWzBdPT1hWzJdKQogICB7CiAgICAgICBjb3V0IDw8MiA8PCBlbmRsOwogICB9CiAgIGVsc2UKICAgewogICAgICAgY291dCA8PCAzIDw8IGVuZGw7CiAgIH0KICAgcmV0dXJuIDA7Cn0=