Codeforces Round 253 (Div. 2)
A
Anton and Letters
Codeforces
800
原题
←B →
翻译中…

Recently, Anton has found a set. The set consists of small English letters. Anton carefully wrote out all the letters from the set in one line, separated by a comma. He also added an opening curved bracket at the beginning of the line and a closing curved bracket at the end of the line.

翻译中…

Unfortunately, from time to time Anton would forget writing some letter and write it again. He asks you to count the total number of distinct letters in his set.

翻译中…

Input

翻译中…

The first and the single line contains the set of letters. The length of the line doesn't exceed 1000. It is guaranteed that the line starts from an opening curved bracket and ends with a closing curved bracket. Between them, small English letters are listed, separated by a comma. Each comma is followed by a space.

翻译中…

Output

翻译中…

Print a single number — the number of distinct letters in Anton's set.

翻译中…

样例

Input #1
{a, b, c}
Output #1
3
InputCopy OutputCopy
Input #2
{b, a, b, a}
Output #2
2
InputCopy OutputCopy
Input #3
{}
Output #3
0
InputCopy OutputCopy
题目信息
题号
443A
时间限制
2 s
内存限制
256 MB
标签
构造
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。