#include<iostream>
using namespace std;

int main()
{
  int a, b;
  cin >> a >> b;
  
  if (a > 8 || b > 8) cout << ":(";
  else cout << "Yay!";
  
  return 0;
}
#include<bits/stdc++.h>
using namespace std;

int main(){
  string S;
  int W;
  cin >> S >> W;
  for(int i=0;i<S.size();i+=W){
    cout << S.at(i);
  }
  cout << endl;
}