Simple task?
Execution time limit is 1 second
Runtime memory usage limit is 256 megabytes
You are given a string , which contains only characters "0
" and "1
". We call a substring from to good if its length is odd, and where . You should find the number of good substrings of the string .
Input
The first line contains one integer () — the length of the string.
The second line contains characters () — the binary string.
Output
Output one number — the amount of good substrings.
Examples
Input #1
Answer #1
Input #2
Answer #2
Note
In the first example, any substring with an odd length bigger than is good: "111
", "111
", "111
", "11111
".
In the second example, there are only two good substrings: "10101
" and "01010
".
Scoring
( points): there are no zeros in the string;
( points): ;
( points): ;
( points): the string contains at most ones;
( points): without additional constraints.
Submissions 19