#include <bits/stdc++.h>
using namespace std;

int main(int argc, char const *argv[])
{
	int n, ans=0;
	string s;
	cin >> n >> s;

	for (int i = 0; i < s.size(); ++i)
	{
		if(s.at(i)=='x'&&i>0&&s.at(i-1)=='x') break;
		++ans;
	}
	cout << ans << endl;
	return 0;
}

