You can not just take the file and send it. When Polycarp trying to send a file in the social network "Codehorses", he encountered an unexpected problem. If the name of the file contains three or more "x" (lowercase Latin letters "x") in a row, the system considers that the file content does not correspond to the social network topic. In this case, the file is not sent and an error message is displayed.

Determine the minimum number of characters to remove from the file name so after that the name does not contain "xxx" as a substring. Print 0 if the file name does not initially contain a forbidden substring "xxx".

You can delete characters in arbitrary positions (not necessarily consecutive). If you delete a character, then the length of a string is reduced by $1$. For example, if you delete the character in the position $2$ from the string "exxxii", then the resulting string is "exxii".


-----Input-----

The first line contains integer $n$ $(3 \le n \le 100)$ — the length of the file name.

The second line contains a string of length $n$ consisting of lowercase Latin letters only — the file name.


-----Output-----

Print the minimum number of characters to remove from the file name so after that the name does not contain "xxx" as a substring. If initially the file name dost not contain a forbidden substring "xxx", print 0.


-----Examples-----
Input
6
xxxiii

Output
1

Input
5
xxoxx

Output
0

Input
10
xxxxxxxxxx

Output
8



-----Note-----

In the first example Polycarp tried to send a file with name contains number $33$, written in Roman numerals. But he can not just send the file, because it name contains three letters "x" in a row. To send the file he needs to remove any one of this letters.

Difficulty: introductory

Starter code:

Solutions:
n = int(input())
s = input()

res = 0
x_count = 0

for c in s:
	if c == 'x':
		x_count += 1
	else:
		x_count = 0

	if x_count > 2:
		res += 1


print(res)

n = int(input())
s = input() + ' '*(n%3)
cnt = 0

for x in range(n):
    if s[x:x+3] == 'xxx':
        cnt += 1

print(cnt)

l = int(input())

s = input()

count = 0
res = 0
for c in s:
    if c == 'x':
        count+=1
    else:
        res += max(0,count-2)
        count = 0
res += max(0,count-2)
print(res)


N = input()
S = input()
count = 0
while "xxx" in S:
    count += 1
    idx = S.index("xxx")
    S = S[:idx] + S[idx+1:]
print(count)


n = int(input())

niz = input().strip()

count = 0
i = 0
while i+2 < len(niz):
    if niz[i:i+3] == 'xxx':
        niz = niz[:i+2] + niz[i+3:]
        count += 1
        i = 0
    else:
        i += 1

print(count)


n = int(input())
s = input() + '#'

res = 0
p = 0
for i, c in enumerate(s):
    if c == 'x':
        p += 1
    else:
        res += max(0, p-2)
        p = 0

print(res)


n = int(input())
s = input()
answer = 0
while('xxx' in s):
	s = s.replace('xxx','xx',1)
	answer += 1


print(answer)

n = int(input())
s = input()
count = 0
for i in range(n-2):
    if s[i:i+3] == "xxx":
        count+=1
print(count)

n = int(input())
s = input() + '_'
s_ = 0
c = 0
for i in s:
    if i == 'x':
        c += 1
    else:
        if c > 2:
            s_ += c - 2
        c = 0
print(s_)

n = int(input())
s = input()
sl = [i for i in s]
c = 0
x = s.find('xxx')
while(x!=-1):
    c+=1
    sl.pop(x)
    temp = ''
    for i in sl:
        temp+=i
    x = temp.find('xxx')
print(c)

n = int(input())
s = input()
ans, l = 0, -2
for i in range(len(s)):
    if s[i] == 'x':
        l += 1
    else:
        ans += max(0, l)
        l = -2
print(ans + max(0, l))

# ANSHUL GAUTAM
# IIIT-D
 



n = int(input())
s = input()
L = []
c = 0
for i in range(len(s)-2):
	if(s[i]=='x' and s[i+1]=='x' and s[i+2]=='x'):
		c += 1
print(c)





















import re

N = int(input())


print(sum(len(g) - 2 for g in re.findall('xxx+', input()) if len(g) >= 3))


_ = input()
l = input()
res = 0
for i in range(len(l) - 2):
    if l[i] == l[i+1] and l[i+1] == l[i+2] and l[i] == 'x':
        res += 1
print(res)

n = int(input())
s = input()

ans = 0
while 'xxx' in s:
    ind = s.index('xxx')
    s = list(s)
    s[ind: ind + 3] = ['x', 'x']
    s = ''.join(s)
    ans += 1

print(ans)


n=int(input())
c,o=0,0
for i in input():
    if i=='x':
        c+=1
    else:
        c=0
    if c>=3:
        o+=1
print(o)


n = int(input())
s = input()
xc = 0
res = 0
for i in s:
    if i == 'x':
        xc += 1
    else:
        if xc >= 3:
            res += xc - 2
        xc = 0
if xc >= 3:
    res += xc - 2
print(res)


n = int(input())
s = input()

cur = 0
ans = 0

for x in s:
    if x == 'x':
        cur += 1
        if cur == 3:
            ans += 1
            cur -= 1
    else:
        cur = 0

print(ans)


n=int(input())
s=input().strip()
ans=0
count=0
flag=0
for i in range(n):
    if flag==0:
        if s[i]=="x":
            count+=1
            flag=1 
    else:
        if s[i]=="x":
            count+=1 
        else:
            if count>=3:
                ans+=count-2 
            count=0
            flag=0
if flag==1:
    if count>=3:
        ans+=count-2
print(ans)
            


n = int(input())

s = input()

lst = []
k = 0
for x in range(n):
    if s[x] == 'x':
        k += 1
    else:
        if k != 0:
            lst.append(k)
        k = 0
if k != 0:
    lst.append(k)
     
ans = 0
for x in lst:
    if x >= 3:
        ans += x - 2

print(ans)


n=int(input())
ch=input()
ans=0
c=0
for i in range(n):
      if ch[i]=="x":
            c+=1
      if (ch[i]=="x" and i==n-1) or ch[i]!="x":
            if c>=3:
                  ans+=(c-2)
            c=0
print(ans)
      


n = int(input())
s = input()
ans = 0
for i in range(n):
	if s[i] == 'x' and (i == 0 or s[i - 1] != 'x'):
		j = i
		while j + 1 < n:
			if s[j + 1] == 'x':
				j += 1
			else:
				break
		sz = j - i + 1
		ans += max(0, sz - 2)
print(ans)

n = int(input())
file_name = input()

to_remove = 0
current_streak = 0

for i in range(n):
	if file_name[i] != 'x':
		current_streak = 0
		continue
	else:
		current_streak += 1
		if current_streak > 2:
			to_remove += 1


print(to_remove)

n = int(input())
s = input()
p = str()
ans = 0
for i in range(n-2):
    if s[i] == "x" and s[i+1] == "x" and s[i+2] == "x":
        ans += 1

print(ans)

n = int(input())
s = [x for x in input()]
length = len(s)

i = 0
ans = 0
while i < len(s):
    while i + 2 < len(s) and s[i] == 'x' and s[i + 1] == 'x' and s[i + 2] == 'x':
        ans += 1
        s.pop(i)
    i += 1
print(ans)