[ABC375A] 间隔空座 (Seats)
Problem Statement
There are seats in a row, numbered .
The state of the seats is given by a string of length consisting of # and .. If the -th character of is #, it means seat is occupied; if it is ., seat is unoccupied.
Find the number of integers between and , inclusive, that satisfy the following condition:
- Seats and are occupied, and seat is unoccupied.
Input
The input is given from Standard Input in the following format:
$N$
$S$
Output
Print the answer.
Example
6
#.##.#
2
Note
-
Constraints:
-
is an integer satisfying .
-
is a string of length consisting of
#and.. -
Source: ABC375A