eolymp
bolt
Try our new interface for solving problems
Problems

Arithmetic

Arithmetic

Time limit 1 second
Memory limit 128 MiB

Stepan is Misha's younger brother who studies in the first grade. He is very inquisitive and constantly gives Stepan questions: And how much? And why? Today is not an exception. Misha caligraphically writes out the numbers in a row and asks: How many different digits in this number. On the first examples Stepan quickly found the answer. But further Misha wrote more numbers. This became a problem for Stepan.

Help Stepan - write a program that determines how many different numbers in the Misha's number.

Input data

One integer n (1n10^1000) written by Misha.

Output data

Print the number of different digits in the number.

Examples

Input example #1
1233
Output example #1
3
Source 2012-2013 Stage III All-Ukrainian School Olympiad, Round 2