# -*- coding: utf-8 -*-
from sys import stdin

n = int(stdin.readline().rstrip())
s = stdin.readline().rstrip()
faint = False

for i in range(1,n):
    if s[i-1] == "x" and s[i] == "x":
        print(i)
        exit()
print(n)
