Problem:
Score: 100 points

Problem Statement

E869120's and square1001's 16-th birthday is coming soon.

Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan-shaped pieces.

E869120 and square1001 were just about to eat A and B of those pieces, respectively,

when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".

Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Constraints

A and B are integers between 1 and 16 (inclusive).

A+B is at most 16.

Input

Input is given from Standard Input in the following format:

A B

Output

If both E869120 and square1001 can obey the instruction in the note and take desired numbers of pieces of cake, print Yay!; otherwise, print :(.

Sample Input 1

5 4

Sample Output 1

Yay!

Both of them can take desired number of pieces as follows:

Sample Input 2

8 8

Sample Output 2

Yay!

Both of them can take desired number of pieces as follows:

Sample Input 3

11 4

Sample Output 3

:(

In this case, there is no way for them to take desired number of pieces, unfortunately.

Solution in C# (Mono 4.6.2.0) (judge verdict: Accepted)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AtCoderTest001
{
    class Program
    {
        static void Main(string[] args)
        {
            new Program().Calc();
        }

        void Calc()
        {
            // read
            string[] tmpStr = Console.ReadLine().Split(' ');

            int a = int.Parse(tmpStr[0]);
            int b = int.Parse(tmpStr[1]);

            if (a <= 8 && b <= 8)
            {
                Console.WriteLine("Yay!");
            }
            else
            {
                Console.WriteLine(":(");
            }

            //int[] cake = new int[16];

            //for(int i= 0; i < cake.Length; i++)
            //{
            //    cake[i] = 0;
            //}

            //for(int i = 0; i < cake.Length ; i++)
            //{

            //    cake.

            //    if(n == 0)
            //    {
            //        Console.WriteLine(i);
            //        break;
            //    }

            //    if(n < 6)
            //    {
            //        Console.WriteLine(i + n);
            //        break;
            //    }
            //    else
            //    {
            //        if(n - x > n - y)
            //        {
            //            n = n - y;
            //        }
            //        else
            //        {
            //            n = n - x;
            //        }
            //    }

            //}

            //Console.WriteLine(x);


        }

        int getHeight(int n)
        {
            if(n == 1)
            {
                return 1;
            }
            else
            {
                return getHeight(n - 1) + n;
            }
        }

        int getJijou(int n, int i)
        {
            if (i == 0)
            {
                return 1;
            }
            else
            {
                return n * getJijou(n, i - 1);
            }
        }

        int Maxjijou(int n, int z)
        {
            int ret = 1;
            int x = 1;
            for(int i = 0; ; i++)
            {
                x = getJijou(z, i);
                if (x > n)
                {
                    return ret;
                }
                ret = x;
            }
        }


    }
}