#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  bool flag = false;
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'x') {
      if (flag)
        break;
      else
        flag = true;
    }
    cnt += 1;
  }
  cout << cnt << endl;
  return 0;
}
