PivotOJ

Šifra

시간 제한: 1000ms메모리 제한: 512MB출처: COCI 2020-2021BOJ 20959

문제

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
출력
4

예제 2

입력
borna123vitez
출력
1

예제 3

입력
as23dkrf23smk1asd23sam9
출력
3
코드를 제출하려면 로그인하세요.