#include<iostream>
#include<algorithm>
#include<vector>
#include<functional>
#include<string>
#include<cmath>
#include<map>
#include<set>
#include<queue>
#include<stack>
#include<cstdio>
#include<numeric>
using namespace std;
using ll = long long;
int main(){
  int a, b;
  cin >> a >> b;
  if(a > 8 || b > 8) {
    cout << ":(\n";
  } else {
    cout << "Yay!\n";
  }
  return 0;
}
#include <iostream>
using namespace std;
int main() {
    int N, K; cin >> N >> K;
    if (N % K != 0) printf("%d\n", 1);
    else printf("%d\n", 0);
}