import java.util.*;
public class Main {
	public static void myout(Object text){//standard output
		System.out.println(text);
	}
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String tmp = sc.next();
		//int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      for(int i = 1; i <= 1000; i++){
        if(Math.pow(i,2) == ab){
          myout("Yes");
          return;
        }
      }
      myout("No");
	}
} import java.util.*; util.* java public class Main {
	public static void myout(Object text){//standard output
		System.out.println(text);
	}
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String tmp = sc.next();
		//int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      for(int i = 1; i <= 1000; i++){
        if(Math.pow(i,2) == ab){
          myout("Yes");
          return;
        }
      }
      myout("No");
	}
} Main public static void myout(Object text){//standard output
		System.out.println(text);
	} myout {//standard output
		System.out.println(text);
	} System.out.println(text) System.out.println System.out System System.out text Object text text public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String tmp = sc.next();
		//int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      for(int i = 1; i <= 1000; i++){
        if(Math.pow(i,2) == ab){
          myout("Yes");
          return;
        }
      }
      myout("No");
	} main {
		Scanner sc = new Scanner(System.in);
		//String tmp = sc.next();
		//int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      for(int i = 1; i <= 1000; i++){
        if(Math.pow(i,2) == ab){
          myout("Yes");
          return;
        }
      }
      myout("No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc int ab = Integer.parseInt(a + b); ab Integer.parseInt(a + b) Integer.parseInt Integer a + b a b for(int i = 1; i <= 1000; i++){
        if(Math.pow(i,2) == ab){
          myout("Yes");
          return;
        }
      } int i = 1; int i = 1; i 1 i <= 1000 i 1000 i++ i++ i {
        if(Math.pow(i,2) == ab){
          myout("Yes");
          return;
        }
      } {
        if(Math.pow(i,2) == ab){
          myout("Yes");
          return;
        }
      } if(Math.pow(i,2) == ab){
          myout("Yes");
          return;
        } Math.pow(i,2) == ab Math.pow(i,2) Math.pow Math i 2 ab {
          myout("Yes");
          return;
        } myout("Yes") myout "Yes" return; myout("No") myout "No" String[] args args public class Main {
	public static void myout(Object text){//standard output
		System.out.println(text);
	}
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String tmp = sc.next();
		//int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      for(int i = 1; i <= 1000; i++){
        if(Math.pow(i,2) == ab){
          myout("Yes");
          return;
        }
      }
      myout("No");
	}
} public class Main {
	public static void myout(Object text){//standard output
		System.out.println(text);
	}
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String tmp = sc.next();
		//int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      for(int i = 1; i <= 1000; i++){
        if(Math.pow(i,2) == ab){
          myout("Yes");
          return;
        }
      }
      myout("No");
	}
} Main
import java.util.*;
public class Main {
	public static void myout(Object text){//standard output
		System.out.println(text);
	}
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String tmp = sc.next();
		//int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      for(int i = 1; i <= 1000; i++){
        if(Math.pow(i,2) == ab){
          myout("Yes");
          return;
        }
      }
      myout("No");
	}
}
