#include <iostream>
#include <unordered_map>
#include <vector>
using namespace std;
#include <map>
#include <unordered_set>
#include <unordered_map>
int main() {
int a, b;
unordered_set<char> set_niuniu;
unordered_map<char,int> map_niuniu;
map<char, int> map_niu;
int n;
cin >> n;
string str_niuniu;
cin >> str_niuniu;
//cout << str_niuniu.c_str() << endl;
for (char c : str_niuniu) {
set_niuniu.insert(c);
map_niuniu[c] = 1;
map_niu[c] = 2;
}
cout << set_niuniu.size() << endl;
//cout << map_niuniu.size() << endl;
//cout << map_niu.size() << endl;
return 0;
}
// 64 位输出请用 printf("%lld")