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();
    int ab = b + a * (int)Math.pow(10,((int)Math.log10(b) + 1));
    int check =0;
    for (int i=1; i<400; i++) {
      if(i * i == ab) {
        check++; 
        break;
      }
    }
    if (check != 0) {
      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();
    int ab = b + a * (int)Math.pow(10,((int)Math.log10(b) + 1));
    int check =0;
    for (int i=1; i<400; i++) {
      if(i * i == ab) {
        check++; 
        break;
      }
    }
    if (check != 0) {
      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();
    int ab = b + a * (int)Math.pow(10,((int)Math.log10(b) + 1));
    int check =0;
    for (int i=1; i<400; i++) {
      if(i * i == ab) {
        check++; 
        break;
      }
    }
    if (check != 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int ab = b + a * (int)Math.pow(10,((int)Math.log10(b) + 1));
    int check =0;
    for (int i=1; i<400; i++) {
      if(i * i == ab) {
        check++; 
        break;
      }
    }
    if (check != 0) {
      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 int ab = b + a * (int)Math.pow(10,((int)Math.log10(b) + 1)); ab b + a * (int)Math.pow(10,((int)Math.log10(b) + 1)) b a * (int)Math.pow(10,((int)Math.log10(b) + 1)) a (int)Math.pow(10,((int)Math.log10(b) + 1)) Math.pow Math 10 ((int)Math.log10(b) + 1) (int)Math.log10(b) Math.log10 Math b 1 int check =0; check 0 for (int i=1; i<400; i++) {
      if(i * i == ab) {
        check++; 
        break;
      }
    } int i=1; int i=1; i 1 i<400 i 400 i++ i++ i {
      if(i * i == ab) {
        check++; 
        break;
      }
    } {
      if(i * i == ab) {
        check++; 
        break;
      }
    } if(i * i == ab) {
        check++; 
        break;
      } i * i == ab i * i i i ab {
        check++; 
        break;
      } check++ check break; if (check != 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } check != 0 check 0 {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
      System.out.println("No");
    } 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();
    int ab = b + a * (int)Math.pow(10,((int)Math.log10(b) + 1));
    int check =0;
    for (int i=1; i<400; i++) {
      if(i * i == ab) {
        check++; 
        break;
      }
    }
    if (check != 0) {
      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();
    int ab = b + a * (int)Math.pow(10,((int)Math.log10(b) + 1));
    int check =0;
    for (int i=1; i<400; i++) {
      if(i * i == ab) {
        check++; 
        break;
      }
    }
    if (check != 0) {
      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();
    int ab = b + a * (int)Math.pow(10,((int)Math.log10(b) + 1));
    int check =0;
    for (int i=1; i<400; i++) {
      if(i * i == ab) {
        check++; 
        break;
      }
    }
    if (check != 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}