using System;

public static class Program
{
  public static void Main(string[] args)
  {
     string[] input = Console.ReadLine().Split(' ');
     double a = double.Parse(input[0] + input[1]);
     double sqrt = Math.Sqrt(a);
     double diff = (double)(sqrt - (int)sqrt);
     string answer = (diff == 0)
       ? "Yes"
       : "No";
     Console.WriteLine(answer);
  }
}
