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

        nums = Console.ReadLine().Split(' ');
        a = nums[0];
	    b = nums[1];

        int total_i = int.Parse(a + b);
      
        double x, y;
        x = System.Math.Sqrt(total_i);
        y = Math.Floor(x);
        bool IsHeiho = (x - y == 0) ? true : false;

        string result = (IsHeiho) ? "yes" : "no";
        Console.WriteLine(result);
    }
}
