import java.util.*;
public class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();int m=sc.nextInt();
  n=Integer.parseInt(n+""+m);
  int i=0;
  for(i=0;i*i<n;i++){}
  System.out.println((i*i==n)?"Yes":"No");
}
} import java.util.*; util.* java public class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();int m=sc.nextInt();
  n=Integer.parseInt(n+""+m);
  int i=0;
  for(i=0;i*i<n;i++){}
  System.out.println((i*i==n)?"Yes":"No");
}
} Main public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();int m=sc.nextInt();
  n=Integer.parseInt(n+""+m);
  int i=0;
  for(i=0;i*i<n;i++){}
  System.out.println((i*i==n)?"Yes":"No");
} main {
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();int m=sc.nextInt();
  n=Integer.parseInt(n+""+m);
  int i=0;
  for(i=0;i*i<n;i++){}
  System.out.println((i*i==n)?"Yes":"No");
} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int m=sc.nextInt(); m sc.nextInt() sc.nextInt sc n=Integer.parseInt(n+""+m) n Integer.parseInt(n+""+m) Integer.parseInt Integer n+""+m n+""+m n "" m int i=0; i 0 for(i=0;i*i<n;i++){} i=0; i=0 i 0 i*i<n i*i i i n i++ i++ i {} {} System.out.println((i*i==n)?"Yes":"No") System.out.println System.out System System.out (i*i==n)?"Yes":"No" (i*i==n) i*i i i n "Yes" "No" String[]args args public class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();int m=sc.nextInt();
  n=Integer.parseInt(n+""+m);
  int i=0;
  for(i=0;i*i<n;i++){}
  System.out.println((i*i==n)?"Yes":"No");
}
} public class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();int m=sc.nextInt();
  n=Integer.parseInt(n+""+m);
  int i=0;
  for(i=0;i*i<n;i++){}
  System.out.println((i*i==n)?"Yes":"No");
}
} Main
import java.util.*;
public class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();int m=sc.nextInt();
  n=Integer.parseInt(n+""+m);
  int i=0;
  for(i=0;i*i<n;i++){}
  System.out.println((i*i==n)?"Yes":"No");
}
}
