A string of length is given. consists only of the characters . In one operation, you can choose and delete one character from the string. You want to perform given operation any number of times so that the character and the character never appear in the string. Find the minimum number of operations required.
Input
The input is given in the following format.
Output
Print the minimum number of operations required to make and never appear in the string.
Constraints
- .
- is a string of length consisting only of the characters .
Subtasks
Samples
Sample 1
Input
10
1234567890
Output
2
Sample 2
Input
8
01234589
Output
0
Sample 3
Input
7
6677776
Output
7