/*  -*- coding: utf-8 -*-
 *
 * 2831.cc: Check answers
 */

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
 
using namespace std;

/* constant */

const int MAX_N = 100000;

/* typedef */

/* global variables */

char s[MAX_N + 4];

/* subroutines */

/* main */

int main() {
  int n;
  scanf("%d%s", &n, s);

  char pc = s[0];
  int k = 1;
  for (; k < n; k++) {
    if (pc == 'x' && s[k] == 'x') break;
    pc = s[k];
  }

  printf("%d\n", k);
  return 0;
}

