#include <bits/stdc++.h>

using namespace std;

using int64 = long long;

int main() {
  int N;
  cin >> N;
  string S;
  cin >> S;

  int sum = 0;
  for(int i = 1; i < N; i++) {
    if(S[i - 1] == 'x' && S[i] == 'x') {
      cout << i << endl;
      return 0;
    }
  }
  cout << N << endl;
}


