#include <bits/stdc++.h>
using namespace std;
stack<char> zhan;
int main(){
    int n;
    string k;
    cin >> n >> k;
    for(int i = 0;i < k.length();i++){
        if(zhan.size() < 2){
            zhan.push(k[i]);
            continue;
        }
        char c = zhan.top();
        zhan.pop();
        if(zhan.top() == 'f' && c == 'o' && k[i] == 'x'){
            zhan.pop();
            continue;
        }
        zhan.push(c);
		zhan.push(k[i]);
    }
    cout <<zhan.size();
    return 0;
}
#include <bits/stdc++.h>
using namespace std;

typedef long long int ll;

int main() {
    ll n,i;cin>>n;
    vector<ll> a(n),b(n+1);
    for(i=0;i<n;i++){
        cin>>a[i];
        b[a[i]]=1;
    }
    int r=0;
    for(i=1;i<=n;i++){
        if(b[i]!=1){
            r=1;
            break;
        }
    }
    if(r==0) cout<<"Yes";
    else cout<<"No";
	return 0;
}
