#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <stdio.h>
using namespace std;
#define int long long
int MOD = 1000000007;
signed main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	int N;
	cin >> N;
	string s;
	cin >> s;
	int res;
	s.push_back('o');
	for (res = 0; res < N; res++) {
		if (s[res] == 'x'&&s[res + 1] == 'x') {
			break;
		}
	}
	cout << min(N,res + 1) << endl;
}