"use strict";

/**
 * Resolves problem.
 * @param  {string} input
 * @returns {string}
 */
const main = function(input) {
    const args = input.split(" ").map(x => parseInt(x));
    const A = args[0];
    const B = args[1];
    return (A <= 8 && B <= 8) ? "Yay!" : ":(";
};

const output = main(require("fs").readFileSync("/dev/stdin", "utf8"));
console.log(output); // console.log outputs with trailing new line!
