import java.util.HashSet; import java.util.Scanner;
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNextLine()) { String string = scanner.nextLine(); HashSet hashSet = new HashSet<>(); for (char c : string.toCharArray()) { if (c <= 127) { hashSet.add(String.valueOf(c)); } } System.out.println(hashSet.size()); } } }