시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 512 MB 2 2 2 100.000%

문제

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 1 and 100. The word contains only lowercase letters and digits. All integers in it have at most three digits.

출력

Output the secret code.

예제 입력 1

abc123abc2a3a1

예제 출력 1

4

예제 입력 2

borna123vitez

예제 출력 2

1

예제 입력 3

as23dkrf23smk1asd23sam9

예제 출력 3

3