#include<iostream>
#include<string>
using namespace std;

int main(){
	int N, ans = 1;
	string S;
	
	cin>>N>>S;
	
	for(int i = 1; i < N; i++)
		if(S[i] == S[i-1]&&S[i] == 'x')break;
		else ans++;
	
	cout<<ans<<endl;
}
