#include <bits/stdc++.h>
#define ll long long
using namespace std;
//reverse(s.begin(),s.end())
ll gcd(ll a,ll b){
    ll s=1,c;
    while(a&&b){
        if((~a&1)&&(~b&1))
            a>>=1,b>>=1,s<<=1;
        else if(~a&1)a>>=1;
        else if(~b&1)b>>=1;
        else if(a>b)a=a-b;
        else c=b-a,b=a,a=c;
    }
    if(!a)return b*s;
    if(!b)return a*s;
}

int main(){
	int n;
	cin>>n;
	cout<<n-1;
}

#include <bits/stdc++.h>
using namespace std;
int main(){
    int ans{};
    string s;
    cin>>s;
    int o{},x{};
    for (unsigned int i{};i<s.length();i++){
        if (s.at(i) == 'o'){
            o++;
        }else if(s.at(i) == '?'){
            x++;
        }
    }
    if (o > 4){
        ans = 0;
    }else if(o == 4){
        ans = 24;
    }else{
        if (o == 3){
            ans = x*24 + 36;
        }else if(o == 2){
            ans = 12*x*(x-1) + x*36 + 14;
        }else if(o == 1){
            ans = 4*x*(x-1)*(x-2) + 18*x*(x-1) + 14*x + 1;
        }else{
            ans = x*(x-1)*(x-2)*(x-3) + 6*x*(x-1)*(x-2) + 7*x*(x-1) + x;
        }
    }
    cout<<ans<<endl;
    return 0;
}