#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < int(n); ++i)
#define REPE(i, a, b) for (int i = (a); i <= int(b); ++i)
#define SZ(x) ((int)(x).size())
#define ALL(x) x.begin(), x.end()
#define PB push_back
#define EB emplace_back
using LL = long long;
using PII = pair<int, int>;
#define F first
#define S second

int main() {
  int n;
  string s;
  cin >> n >> s;
  char l = 0;
  int ans = 0;
  for (char c : s) {
    if (l == 'x' && c == 'x') break;
    ans++;
    l = c;
  }
  cout << ans << endl;
  return 0;
}