#include <bits/stdc++.h>
#define FOR(I,X,Y) for(int (I)=(X);(I)<(Y);(I)++)
#define REP(I,X,Y) for(int (I)=(Y)-1;(I)>=(X);(I)--)
#define ALL(X) (X).begin(),(X).end()
#define INF 1000000007
#define LINF 1000000000000000007
typedef long long ll;
using namespace std;

int main(){
  int N;
  string S;
  cin >> N >> S;
  if(N-1){
    FOR(i,0,N-1){
      if(S[i] == S[i+1] && S[i] == 'x'){
        cout << i+1 << endl;
        return 0;
      }
    }
    cout << N << endl;
  }
  else{
    cout << 1 << endl;
  }
}

