The first line contains a single integer, the number of actors.
The second line contains a lowercase string s of length n.represents the group of the i-th actor.
Output a single line with a single integer, the number of different possible shows.
There are 7 different possible shows:
1. Action 1, corresponding to range [1,1], [2,2], [3,3], [4,4], [5,5].
2. Actions 1,2, corresponding to range [1,2],[2,3],[3,4],[4,5].
3. Actions 1,2,1, corresponding to range [1,3], [2,4].
4. Actions 1,2,3, corresponding to range [3,5].
5. Actions 1,2,1,2, corresponding to range [1,4].
6. Actions 1,2,1,3, corresponding to range [2,5].
7. Actions 1,2,1,2,3, corresponding to range [1,5].