using System;

namespace ABC144
{
    class Program
    {
        static void Main(string[] args)
        {
            /*//ABC_144_A
            int a, b;
            string[] token;
            token = Console.ReadLine().Split();

            a = Convert.ToInt32(token[0]);
            b = Convert.ToInt32(token[1]);

            if (a < 10 && b < 10)
            {
                Console.WriteLine("" + a * b);
            }
            else
            {
                Console.WriteLine(-1);
            }*/

            //ABC_144_B
            int n;
            bool ck = false;
            n = Convert.ToInt32(Console.ReadLine());
            int j ;
            for(int i = 1; i <= 9; i++)
            {
                for (j = 1; j <= 9; j++)
                {
                    if (i * j == n)
                    {
                        Console.WriteLine("Yes");
                        ck = true;
                        return;
                    }
                }
                    
            }

            if (!ck)
            {
                Console.WriteLine("No");
            }
         
        }
    }
}
