#include<iostream> using namespace std; int main() { string s; cin>>s; bool flag[128]={0}; int count=0; for(int i=0;i<s.length();i++) { if(flag[int(s[i])]==0) count++; flag[int(s[i])]=1; } cout<<count; }