import java.util.Arrays; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; // https://yukicoder.me/problems/no/964 public class dupli2020_964 { public static void main(String[] args) { // 標準入力から読み込む際に、Scan Scanner sc = new Scanner(System.in); // String 1つ分を読み込む String s = sc.next(); List sList = Arrays.asList(s.split("")); System.out.println(sList.stream().distinct().collect(Collectors.toList()).size()); } }