#include<bits/stdc++.h>
#include<stdlib.h>
using namespace std;
typedef long long int ll;
int main()
{
    string s;
    cin>>s;
    int ans=0;
    for(int i=0;i<=9999;i++){
        vector<bool>flag(10,false);
        int x=i;
        for(int j=0;j<4;j++){
            flag[x%10]=true;
            x/=10;
        }
        bool flag1=true;
        for(int j=0;j<10;j++){
            if(s[j]=='o'&&!flag[j]) flag1=false;
            if(s[j]=='x'&&flag[j]) flag1=false;
        }
        ans+=flag1;
    }
    cout<<ans<<endl;
}

#include <bits/stdc++.h>
using namespace std;
//ofstream cout("output.out");

#define fast() {ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);}
#define pb push_back
#define vi vector<int>
#define vl vector<ll>					
#define vii vector<vector<int>>
#define mii map<int, int>
#define pii pair<int, int>
#define qii priority_que<int, vector<int>, greater<int>>				
#define For(i, n) for(int i = 0; i < n; ++i)
#define For1(i, n) for(int i = 1; i <= n; ++i)
#define Forlr(i, l, r) for(int i = l; i <= r; ++i)
#define Forrl(i, r, l) for(int i = r; i >= l; --i)
#define o(a) { cout << #a << ":" << (a) <<" ";}
#define ov(a) {For(i, a.size()) cout << a[i] <<" ";}
#define ovv(a) {For(i, a.size()) {For(j, a[i].size()) cout << a[i][j] <<" ";cout <<"\n";}}
using ll = long long;
int n, m, k, q;

void solve(){	
	string s;
	cin >> s;
	n = s.length();
	ll rs = 0;
	For(i1, 10) For(i2, 10) For(i3, 10) For(i4, 10){
		if(s[i1] == 'x' || s[i2] == 'x' 
			|| s[i3] == 'x' || s[i4] == 'x'){
			continue;
		}
		bool check = 0;
		For(i, n) if(s[i] == 'o' && i1 != i && 
			i2 != i && i3 != i && i4 != i) check = 1;
		rs += check == 0 ? 1 : 0;
	}
	cout << rs <<"\n";
		
}

int main ()
{
	fast();
	int t = 1;
	//cin >> t;
	while(t--){
		solve();
	}
	return 0;
}