namespace _086
{
    class Program
    {
        static void Main(string[] args)
        {
            ProblemB.Solve();
        }
    }


    class ProblemB
    {
        public static void Solve()
        {

            string[] array = Console.ReadLine().Split(' ');

            int num = int.Parse(array[0] + array[1]);

            double root = Math.Sqrt(num);

            for (int i = 1; i <= 1000; i++)
            {
                if ((i * i) == num)
                {
                    Console.WriteLine("Yes");
                    return;
                }

            }

            Console.WriteLine("No");
        }
    }
}
