You are given a string $$$s$$$. You can perform the following operation:
Your task is to make all the letters equal, achieving the minimal total cost.
The first line contains a single integer $$$n$$$ ($$$1 \leq n \leq 2 \cdot 10^5$$$) — the length of the string.
The second line contains $$$s_1, \dots, s_n$$$. The letters are lowercase English alphabet characters.
Output the minimal total cost.
5 azabz
3
4 abca
0
8 baknsasn
52
10 bcforobxgf
54
You can perform the following operations to achieve the optimal answer:
The total cost is $$$3$$$.