#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
vector<int> a(1000000);
vector<string> b(1000000);
vector<int> c(1000000);
vector<int> d(1000000);

int n;
string m;
cin>>n>>m;
int ans =n;
for(int i=0;i<n;i++){
    if(m[i]=='x'&&m[i+1]=='x'){
    	ans=i+1;
        break;
    }
}
cout<<ans<<endl;
    return 0;
}




