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

int n, cnt = 1;
string s;

int main() {
  cin >> n >> s;
  for(int i = 1; i < n; ++i) {
    if(s[i] == 'x' && s[i - 1] == 'x') break;
    ++cnt;
  }
  cout << cnt << endl;
  return 0;
}
