#include <bits/stdc++.h>
using namespace std;

int main(){
  int n;
  string str;
  cin>>n;
  cin>>str;

  int ans = 0;
  char pre = 0;
  for(int i=0;i<n;i++){
    if(pre == 'x' && str[i] == 'x') break;
    ans++;
    pre = str[i];
  }
  cout<<ans<<endl;
  
}