Natasha is going to fly to Mars. She needs to build a rocket, which consists of several stages in some order. Each of the stages is defined by a lowercase Latin letter. This way, the rocket can be described by the string — concatenation of letters, which correspond to the stages.

There are $n$ stages available. The rocket must contain exactly $k$ of them. Stages in the rocket should be ordered by their weight. So, after the stage with some letter can go only stage with a letter, which is at least two positions after in the alphabet (skipping one letter in between, or even more). For example, after letter 'c' can't go letters 'a', 'b', 'c' and 'd', but can go letters 'e', 'f', ..., 'z'.

For the rocket to fly as far as possible, its weight should be minimal. The weight of the rocket is equal to the sum of the weights of its stages. The weight of the stage is the number of its letter in the alphabet. For example, the stage 'a 'weighs one ton,' b 'weighs two tons, and' z' — $26$ tons.

Build the rocket with the minimal weight or determine, that it is impossible to build a rocket at all. Each stage can be used at most once.
The first line of input contains two integers — $n$ and $k$ ($1 \le k \le n \le 50$) – the number of available stages and the number of stages to use in the rocket.

The second line contains string $s$, which consists of exactly $n$ lowercase Latin letters. Each letter defines a new stage, which can be used to build the rocket. Each stage can be used at most once.
5 3
xyabd
29
7 4
problem
34
2 2
ab
-1
12 1
abaabbaaabbb
1
50 13
qwertyuiopasdfghjklzxcvbnmaaaaaaaaaaaaaaaaaaaaaaaa
169
50 14
qwertyuiopasdfghjklzxcvbnmaaaaaaaaaaaaaaaaaaaaaaaa
-1
1 1
a
1
50 1
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1
50 2
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-1
13 13
uwgmkyqeiaocs
169
13 13
hzdxpbfvrltnj
182
1 1
n
14
10 8
smzeblyjqw
113
20 20
tzmvhskkyugkuuxpvtbh
-1
30 15
wjzolzzkfulwgioksfxmcxmnnjtoav
-1
40 30
xumfrflllrrgswehqtsskefixhcxjrxbjmrpsshv
-1
50 31
ahbyyoxltryqdmvenemaqnbakglgqolxnaifnqtoclnnqiabpz
-1
10 7
iuiukrxcml
99
38 2
vjzarfykmrsrvwbwfwldsulhxtykmjbnwmdufa
5
12 6
fwseyrarkwcd
61
2 2
ac
4
1 1
c
3
2 2
ad
5
2 1
ac
1
4 3
adjz
15
3 3
aoz
42
3 1
zzz
26
2 1
xz
24
5 1
aaddd
1
n, k = map(int, input().split())
lst = input()
a = b = 0
for i in map(ord,sorted(lst)):
    if i - b > 1:
        a += i - 96
        b = i
        k -= 1
    if k == 0:
        break
if k > 0:
    print(-1)
else:
    print(a)