#include <bits/stdc++.h>
using namespace std;
int main() {
  int c = 0;
  string s;
  getline(cin, s);
  for (int i = 97; i <= 122; i++) {
    if (s.find(char(i)) == string::npos) c++;
  }
  cout << 26 - c;
}
