Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/string-har-xil-harflar

Number of distinct letters

Easy 1000 ms 128 MB 29%
Share

A string $s$ of lowercase Latin letters is given. Find how many distinct letters occur in it.

Finding the set of distinct letters of the string

Input

One line containing the string $s$.

Output

One integer (from $1$ to $26$).

Note

$1 \le |s| \le 10^{5}$
$s$ consists of lowercase Latin letters (a–z) only

Examples

Input #1
banana
Output #1
3
Input #2
abcabc
Output #2
3

Sign in to submit a solution

Signing up is free and takes a minute.