#include <algorithm>
#include <iostream>
#include <string>
#include <utility>
#include <vector>

using namespace std;

#define REP(i, b, e) for (auto i = b; i < e; ++i)

int main() {
    int n;
    string s;
    cin >> n >> s;

    int ans = 0;

    REP(i, 0, n) {
        if (s[i] == 'x') {
            if (i - 1 >= 0 && s[i - 1] == 'x') {
                break;
            }
        }

        ans++;
    }

    cout << ans << endl;
}