#include<iostream>
#include<string>
using namespace std;
int main(){
    int n;
    cin >> n;
    string s;
    cin >> s;
    for(int i=1;i<n;i++)if(s[i-1] == 'x' && s[i]=='x'){
        cout << i << endl;
        return 0;
    }
    cout << n << endl;
}
