using System;

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