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
예제 1
입력
10
1234567890
출력
2
예제 2
입력
8
01234589
출력
0
예제 3
입력
7
6677776
출력
7