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