#include<functional>
#include<algorithm>
#include<iostream>
#include<utility>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<deque>
#include<map>
#include<set>
#define rep(i,n) for(int i=0;i<n;i++)
#define loop(i,x,n) for(int i=x;i<n;i++)
#define pb push_back
#define int long long
using namespace std;
const int INF=1000000007;
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};

signed main(){
  int n;
  string s;
  cin>>n>>s;
  int ans=0;
  rep(i,n){
    if((s[i]=='x'&&s[i+1]=='x')){
      ans++;
      break;
    }
    else ans++;
  }
  cout<<ans<<endl;
  return 0;
}