#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
 if(floor(1.08*n)<206) cout<<"Yay!";
 if(floor(1.08*n)==206) cout<<"so-so";
 if(floor(1.08*n)>206) cout<<":(";
  return 0;
}
#include <cstdio>
using namespace std;
char s[12];
int o, x, q, sol, t[12], c[12], cnt;
int a[5];
bool check;
int f(int n){
    if(n == 1){
        return 1;
    } else {
        return n * f(n - 1);
    }
}
int c4(int a){
    switch(a){
        case 1: case 3:
            return 4;
        case 2:
            return 6;
        case 0: case 4:
            return 1;
        default:
            return 0;
    }
}
int main(){
    scanf("%s", s);
    for(int i = 0; i < 10; i++){
        if(s[i] == 'o'){
            t[i] = 1;
            c[i] = 1;
        } else if(s[i] == 'x'){
            t[i] = -1;
            c[i] = -1;
        } else if(s[i] == '?'){
            t[i] = 0;
            c[i] = 0;
        }
    }
    /*
    sol = (c4(o) * f(o) * o / (5 - o) + c4(o) * f(o) * o);
    printf("%d\n", sol);*/
    for(int i = 0; i < 10000; i++){
        check = 1;
        a[0] = i / 1000;
        a[1] = (i / 100) % 10;
        a[2] = (i / 10) % 10;
        a[3] = i % 10;
        for(int i = 0; i < 4; i++){
            if(c[a[i]] == -1){
                check = 0;
                break;
            } else if(c[a[i]] == 1){
                c[a[i]] = 0;
            }
        }
        for(int i = 0; i < 10; i++){
            if(c[i] > 0){
                check = 0;
                break;
            }
        }
        if(check){
            cnt++;
        }
        for(int i = 0; i < 10; i++){
            c[i] = t[i];
        }
    }
    printf("%d\n", cnt);
}