#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;

const double EPS = 1e-10;
const ll INF = 100000000;
const ll MOD = 1000000007;

int n;
string s;

int main(){
    cin >> n >> s;
    int ans = 0;
    bool ok = true;
    rep(i,s.size()) {
        if(s[i] == 'x') {
            if(!ok) {
                break;
            } else {
                ok = false;
            }
        } else {
            ok = true;
        }
        ans++;
    }
    cout << ans << endl;
}