#include <bits/stdc++.h>
#define REP(i, a, n) for(ll i = ((ll) a); i < ((ll) n); i++)
using namespace std;
typedef long long ll;

ll N;
string S;

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

  ll ans = 1;
  REP(i, 1, N) {
    if(S[i - 1] == 'x' && S[i] == 'x') break;
    ans++;
  }
  cout << ans << endl;
}