import Control.Monad
import Control.Applicative

solver :: [Int] -> String
solver [a, b]
    | a > 8     = ":("
    | b > 8     = ":("
    | otherwise = "Yay!"

main :: IO ()
main = getLine >>= putStrLn . solver . (map read) . words
