N = int(input())
S = list(input())

Bflag = False
count = 0
for i in range(N):
  if S[i] == '#':
    Bflag = True
  elif Bflag is True:
    count = count + 1
            
if count == 0:
  count = 1
print(count)