#include <bits/stdc++.h>

#define nl "\n"

using namespace std;

int main() {
    int a, b;

    while(cin>>a>>b) {
        if((a==8 && b == 7) || (a == 7 && b == 8)) {
            cout<<":("<<nl;
        }
        else if(a>8 || b>8) {
            cout<<":("<<nl;
        }
        else {
            cout<<"Yay!"<<nl;
        }
    }

    return 0;
}
