#include <cstdio> #include <cstring> using namespace std; int main() { char ch; int arr[130]; memset(arr, 0, sizeof(arr)); while(EOF != scanf("%c", &ch)) { arr[ch] = 1; } int sum = 0; for(int i=0; i<128; i++){ sum += arr[i]; } printf("%d", sum-arr['\n']); return 0; }