#include<iostream>
#include<string>
using namespace std;

int main()
{
    int n;
    char s[100000];

    cin >> n >> s;

    int cnt = 0;
    for( int i = 0; i < n; i++ )
    {
        if( s[i] == 'x' && s[i+1] == 'x' )
        {
            cnt++;
            break;
        }
        cnt++;
    }

    cout << cnt << endl;

    return 0;
}
