Knight Borna is trying to decipher secret letters of his enemies. He recently came into possession of a special piece of paper that is used for the cipher. The paper contains a single word, made up of lowercase letters and digits.
The secret code is the number of distinct integers that appear in the word, when all letters are replaced with whitespace. The integers are written without leading zeroes.
Since Borna is not very good with numbers, he turned to you for help.
The first line contains a word of length between and . The word contains only lowercase letters and digits. All integers in it have at most three digits.
Output the secret code.
|1||20||All integers will be pairwise distinct.|
|2||30||No additional constraints.|
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2
Sample Input 3
Sample Output 3