import java.util.Arrays;
import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int v = Integer.valueOf(a+b);
    int count = 0;
    for(int i=1;i<v/2;i++) {
      if(i*i == v) {
        count++;
      } 
    }
    String ans = (count>0) ? "Yes" : "No";
    System.out.println(ans);
    }
    }
   import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int v = Integer.valueOf(a+b);
    int count = 0;
    for(int i=1;i<v/2;i++) {
      if(i*i == v) {
        count++;
      } 
    }
    String ans = (count>0) ? "Yes" : "No";
    System.out.println(ans);
    }
    } Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int v = Integer.valueOf(a+b);
    int count = 0;
    for(int i=1;i<v/2;i++) {
      if(i*i == v) {
        count++;
      } 
    }
    String ans = (count>0) ? "Yes" : "No";
    System.out.println(ans);
    } main {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int v = Integer.valueOf(a+b);
    int count = 0;
    for(int i=1;i<v/2;i++) {
      if(i*i == v) {
        count++;
      } 
    }
    String ans = (count>0) ? "Yes" : "No";
    System.out.println(ans);
    } 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 v = Integer.valueOf(a+b); v Integer.valueOf(a+b) Integer.valueOf Integer a+b a b int count = 0; count 0 for(int i=1;i<v/2;i++) {
      if(i*i == v) {
        count++;
      } 
    } int i=1; int i=1; i 1 i<v/2 i v/2 v 2 i++ i++ i {
      if(i*i == v) {
        count++;
      } 
    } {
      if(i*i == v) {
        count++;
      } 
    } if(i*i == v) {
        count++;
      } i*i == v i*i i i v {
        count++;
      } count++ count String ans = (count>0) ? "Yes" : "No"; ans (count>0) ? "Yes" : "No" (count>0) count 0 "Yes" "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Arrays;
import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int v = Integer.valueOf(a+b);
    int count = 0;
    for(int i=1;i<v/2;i++) {
      if(i*i == v) {
        count++;
      } 
    }
    String ans = (count>0) ? "Yes" : "No";
    System.out.println(ans);
    }
    }
  
