function Main(input){
  input = input.trim();
  const a = input.sprit(" ")
  const b = input.sprit("")
  if(a>8 || b>8){
    console.log(":(")
  }else{
    console.log("Yay!")
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));