import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); String line=sc.nextLine(); Set<Character> set=new HashSet<>(); for(int i=0;i<line.length();i++){ char c=line.charAt(i); if(0<=c&&c<=127){ set.add(c); } } System.out.println(set.size()); } }