#include <bits/stdc++.h>
#define FOR(i,a,b) for(ut i=(a);i<(ut)(b);i++)
#define REP(i,b) FOR(i,0,b)
#define ALL(c) c.begin(),c.end()
#define PB push_back
#define cat //cout << __LINE__ << endl;
using namespace std;
typedef long long LL;
typedef double ld;
typedef LL ut;
typedef vector<ut> VI;
typedef pair<ut,ut> pr;
typedef pair<ut,pr> ppr;
typedef vector<pr> Vpr;
typedef vector<ppr> Vppr;
typedef priority_queue<ut,VI> PQ;
const int SIZE=2*1e5;
const LL INF=-1+(1LL<<61);
const LL p=7+1e9;

int main(){
	int N;
	string s;
	cin >> N;
	cin >> s;
	int ans=s.size();
	REP(i,s.size()){
		if(i && s[i]=='x' && s[i-1]=='x'){
			ans=i;
			break;
		}
	}
	cout << ans << endl;

	return 0;
}