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

index =[]

for i in range(0,N):
   if S[i] == '.' :
       index.append(i)

print(index)

count = 0

if index[0] == 0:
    del index[0]
    
for j in range(len(index)):
    if S[index[j]] != S[index[j]-1]:
        count += 1

print(count)
