using System;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            string t = Console.ReadLine();
            string[] tt = t.Split(' ');
            t = "";
            int a = int.Parse(tt[0].ToString());
            t += a;
            a = int.Parse(tt[1].ToString());
            t = t + a;
            int b =(int) Math.Sqrt(double.Parse(t));
            if (b*b == int.Parse(t)) Console.WriteLine("Yes");
            else Console.WriteLine("No");
        }
    }
}