import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int a = sc.nextInt();
   int b = sc.nextInt();
 
   Integer[] sq = new Integer[350];
   int t10 = 1;
   if(b==100) t10=1000;
   else if(b>=10) t10=100;
   else t10=10;
   for(int i=1;i<=350;i++) 
   {
     sq[i-1]=i*i;
   }
   if(Arrays.asList(sq).contains(a*t10+b)) System.out.println("Yes");
   else System.out.println("No");
 }
} import java.util.*; util.* java public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int a = sc.nextInt();
   int b = sc.nextInt();
 
   Integer[] sq = new Integer[350];
   int t10 = 1;
   if(b==100) t10=1000;
   else if(b>=10) t10=100;
   else t10=10;
   for(int i=1;i<=350;i++) 
   {
     sq[i-1]=i*i;
   }
   if(Arrays.asList(sq).contains(a*t10+b)) System.out.println("Yes");
   else System.out.println("No");
 }
} Main public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int a = sc.nextInt();
   int b = sc.nextInt();
 
   Integer[] sq = new Integer[350];
   int t10 = 1;
   if(b==100) t10=1000;
   else if(b>=10) t10=100;
   else t10=10;
   for(int i=1;i<=350;i++) 
   {
     sq[i-1]=i*i;
   }
   if(Arrays.asList(sq).contains(a*t10+b)) System.out.println("Yes");
   else System.out.println("No");
 } main {
   Scanner sc = new Scanner(System.in);
 
   int a = sc.nextInt();
   int b = sc.nextInt();
 
   Integer[] sq = new Integer[350];
   int t10 = 1;
   if(b==100) t10=1000;
   else if(b>=10) t10=100;
   else t10=10;
   for(int i=1;i<=350;i++) 
   {
     sq[i-1]=i*i;
   }
   if(Arrays.asList(sq).contains(a*t10+b)) System.out.println("Yes");
   else System.out.println("No");
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc Integer[] sq = new Integer[350]; sq new Integer[350] 350 int t10 = 1; t10 1 if(b==100) t10=1000;
   else if(b>=10) t10=100;
   else t10=10; b==100 b 100 t10=1000 t10 1000 if(b>=10) t10=100;
   else t10=10; b>=10 b 10 t10=100 t10 100 t10=10 t10 10 for(int i=1;i<=350;i++) 
   {
     sq[i-1]=i*i;
   } int i=1; int i=1; i 1 i<=350 i 350 i++ i++ i {
     sq[i-1]=i*i;
   } {
     sq[i-1]=i*i;
   } sq[i-1]=i*i sq[i-1] sq i-1 i 1 i*i i i if(Arrays.asList(sq).contains(a*t10+b)) System.out.println("Yes");
   else System.out.println("No"); Arrays.asList(sq).contains(a*t10+b) Arrays.asList(sq).contains Arrays.asList(sq) Arrays.asList Arrays sq a*t10+b a*t10 a t10 b System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int a = sc.nextInt();
   int b = sc.nextInt();
 
   Integer[] sq = new Integer[350];
   int t10 = 1;
   if(b==100) t10=1000;
   else if(b>=10) t10=100;
   else t10=10;
   for(int i=1;i<=350;i++) 
   {
     sq[i-1]=i*i;
   }
   if(Arrays.asList(sq).contains(a*t10+b)) System.out.println("Yes");
   else System.out.println("No");
 }
} public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int a = sc.nextInt();
   int b = sc.nextInt();
 
   Integer[] sq = new Integer[350];
   int t10 = 1;
   if(b==100) t10=1000;
   else if(b>=10) t10=100;
   else t10=10;
   for(int i=1;i<=350;i++) 
   {
     sq[i-1]=i*i;
   }
   if(Arrays.asList(sq).contains(a*t10+b)) System.out.println("Yes");
   else System.out.println("No");
 }
} Main
import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int a = sc.nextInt();
   int b = sc.nextInt();
 
   Integer[] sq = new Integer[350];
   int t10 = 1;
   if(b==100) t10=1000;
   else if(b>=10) t10=100;
   else t10=10;
   for(int i=1;i<=350;i++) 
   {
     sq[i-1]=i*i;
   }
   if(Arrays.asList(sq).contains(a*t10+b)) System.out.println("Yes");
   else System.out.println("No");
 }
}