Little Shino loves to play with coins. In the city she lives, there are different types of coins. Each coin is represented with a lowercase letter . Shino has some number of coins and she placed them in some random sequence, S, on the table. She is wondering how many pairs are there, where , such that number of distinct coins in sequence is exactly equal to K. Two coins of same type (same letters) are considered equal and two coins of different types (different letters) are considered distinct.
Input:
First line contains one integer, K.
Second line contains a string, S, consist of lowercase letters only.
Output:
Print one integer, number of pairs , where , such that number of distinct coins in sequence is exactly equal to K.
Constraints:
S consists of lowercase letters only.
Note: denotes the sequence
Since,
Possible pairs such that number of distinct coins in is exactly equal to K are:
and abc
and abca
and abcaa
and bca
and bcaa
So the answer is 5.