#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
#include <cstring>
using namespace std;
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)
#define CLR(mat) memset(mat, 0, sizeof(mat))
typedef long long ll;
int main()
{
  int N; cin >> N;
  string s; cin >> s;
  int ans = 1;
  FOR(i,0,N-1) {
    if(s[i] == 'x' && s[i+1] == 'x') break;
    else {
      ans++;
    }
  }
  cout << ans << endl;
  return 0;
}