The United Cows of Farmer John (UCFJ) are sending a delegation to the International bOvine olympIad (IOI).
There are
The delegation will consist of a contiguous interval of at least two cows - that is, cows
Help the UCFJ determine (for tax reasons) the number of ways they might choose a delegation to send to the IOI.
The first line contains
The second line contains
The number of possible delegations, on a single line.
Subtask # | Score | Constraints |
---|---|---|
1 | 15 | |
2 | 25 | |
3 | 60 | No additional constraints |
Sample Input 1 | Sample Output 1 |
7
|
13
|
Each delegation corresponds to one of the following pairs of leaders:
Subtask | Score |
---|---|
1 | 15 |
2 | 25 |
3 | 60 |
4 | 0 |