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

int main()
{
    int n;
    string S;

    cin >> n;
    cin >> S;

    for (int i = 0; i < n; i++){
        if (S[i] == 'x' && S[i + 1] == 'x'){
            cout << i + 1 << endl;
            return (0);
        }
    }
    cout << n << endl;
    return (0);
}

