#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, i = 1;
  string S;
  cin >> N >> S;
  for (; 1 < N;) {
    if (S[i++] == 'x' & S[i - 2] == 'x') {
      i--;
      break;
    }
  }
  cout << min(i + 1, N) << endl;
}
