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

int main(){

    int n;
    string s;
    cin >> n >> s;
    s = 'o' + s;
    for(int i = 1; i <= n; i++){
        if(s[i] == 'x'){
            if(s[i - 1] == 'x'){
                cout << i - 1 << endl;
                return 0;
            }
        } 
    }
    cout << n << endl;

    return 0;
}
