시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB18213811677.852%

문제

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