#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin>>n;
    string s;
    cin>>s;
    char t='o';
    for (int i = 0; i < s.size(); ++i) {
        if(t=='x'&&s[i]=='x'){cout<<i<<endl;return 0; }
        else t=s[i];
    }
    cout<<s.size()<<endl;
    return 0;
}
