P29612 [洛谷] [COCI2020-2021#5] Šifra
普及-
题目描述

Problem Description

Given a string of no more than $100$ characters, consisting only of lowercase letters and digits from $0$ to $9$ (where letters can be considered as separators). Determine how many distinct numbers are contained in the string.

Input Format

A single line containing a string of lowercase letters and digits, ensuring that each number has at most $3$ digits.

Output Format

Output the number of distinct numbers in the string.

Sample Input and Output

Sample Input #1

abc123abc2a3a1

Sample Output #1

4

Sample Input #2

borna123vitez

Sample Output #2

1

Sample Input #3

as23dkrf23smk1asd23sam9

Sample Output #3

3

Notes

Data Size and Constraints

For $50\%$ of the test cases, all numbers that appear are distinct.

For $100\%$ of the test cases, the length of the string is between $1$ and $100$.

Notes

This problem's score is set according to the original COCI contest, with a maximum score of $50$.

The problem is translated from COCI2020-2021 CONTEST #5 T1 Šifra.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
abc123abc2a3a1
样例输出
4