using System;
class Program
{
    static void Main(string[] args)
    {
        string[] nums;
        string a, b;
		heyho hey = new heyho();

        nums = Console.ReadLine().Split(' ');
        a = nums[0];
	    b = nums[1];
        
      	string total_s = a + b ;
        int total_i = int.Parse(total_s);
        bool c = hey.IsHeyhokon(total_i);

        string result = (c) ? "yes" : "no";
        Console.WriteLine(result);
    }
}
class heyho
{
    public bool IsHeyhokon(int a)
    {
        double x, y;
        x = System.Math.Sqrt(a);
        y = Math.Floor(x);
        bool IsHeiho = (x - y == 0) ? true : false;
        return IsHeiho;
    }
}