function Main(input) {
  input = input.split("\n");

  var A = parseInt(input[0], 10);
  var B = parseInt(input[1], 10);


  if(A < 8 && B < 8) {
    console.log('Yay!');
  } else {
    console.log('Yay!');
  }
  
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
