import java.util.Scanner;

public class Main {
  public static void main(String args[]) {
    Scanner acd = new Scanner(System.in);
    int n,a,b,c;
    a=acd.nextInt();
    b=acd.nextInt();
    if(b/100>0)
      n = a * 1000 + b;
    else if(b/10>0)
      n = a * 100 + b;
    else 
      n = a * 10 + b;
    for(c = 1;c < 317 && c * c != n; c++);
    if(c==317)
      System.out.println("No");
    else 
      System.out.println("Yes");
}   
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String args[]) {
    Scanner acd = new Scanner(System.in);
    int n,a,b,c;
    a=acd.nextInt();
    b=acd.nextInt();
    if(b/100>0)
      n = a * 1000 + b;
    else if(b/10>0)
      n = a * 100 + b;
    else 
      n = a * 10 + b;
    for(c = 1;c < 317 && c * c != n; c++);
    if(c==317)
      System.out.println("No");
    else 
      System.out.println("Yes");
}   
} Main public static void main(String args[]) {
    Scanner acd = new Scanner(System.in);
    int n,a,b,c;
    a=acd.nextInt();
    b=acd.nextInt();
    if(b/100>0)
      n = a * 1000 + b;
    else if(b/10>0)
      n = a * 100 + b;
    else 
      n = a * 10 + b;
    for(c = 1;c < 317 && c * c != n; c++);
    if(c==317)
      System.out.println("No");
    else 
      System.out.println("Yes");
} main {
    Scanner acd = new Scanner(System.in);
    int n,a,b,c;
    a=acd.nextInt();
    b=acd.nextInt();
    if(b/100>0)
      n = a * 1000 + b;
    else if(b/10>0)
      n = a * 100 + b;
    else 
      n = a * 10 + b;
    for(c = 1;c < 317 && c * c != n; c++);
    if(c==317)
      System.out.println("No");
    else 
      System.out.println("Yes");
} Scanner acd = new Scanner(System.in); acd new Scanner(System.in) int n n a a b b c; c a=acd.nextInt() a acd.nextInt() acd.nextInt acd b=acd.nextInt() b acd.nextInt() acd.nextInt acd if(b/100>0)
      n = a * 1000 + b;
    else if(b/10>0)
      n = a * 100 + b;
    else 
      n = a * 10 + b; b/100>0 b/100 b 100 0 n = a * 1000 + b n a * 1000 + b a * 1000 a 1000 b if(b/10>0)
      n = a * 100 + b;
    else 
      n = a * 10 + b; b/10>0 b/10 b 10 0 n = a * 100 + b n a * 100 + b a * 100 a 100 b n = a * 10 + b n a * 10 + b a * 10 a 10 b for(c = 1;c < 317 && c * c != n; c++); c = 1; c = 1 c 1 c < 317 && c * c != n c < 317 c 317 c * c != n c * c c c n c++ c++ c ; if(c==317)
      System.out.println("No");
    else 
      System.out.println("Yes"); c==317 c 317 System.out.println("No") System.out.println System.out System System.out "No" System.out.println("Yes") System.out.println System.out System System.out "Yes" String args[] args public class Main {
  public static void main(String args[]) {
    Scanner acd = new Scanner(System.in);
    int n,a,b,c;
    a=acd.nextInt();
    b=acd.nextInt();
    if(b/100>0)
      n = a * 1000 + b;
    else if(b/10>0)
      n = a * 100 + b;
    else 
      n = a * 10 + b;
    for(c = 1;c < 317 && c * c != n; c++);
    if(c==317)
      System.out.println("No");
    else 
      System.out.println("Yes");
}   
} public class Main {
  public static void main(String args[]) {
    Scanner acd = new Scanner(System.in);
    int n,a,b,c;
    a=acd.nextInt();
    b=acd.nextInt();
    if(b/100>0)
      n = a * 1000 + b;
    else if(b/10>0)
      n = a * 100 + b;
    else 
      n = a * 10 + b;
    for(c = 1;c < 317 && c * c != n; c++);
    if(c==317)
      System.out.println("No");
    else 
      System.out.println("Yes");
}   
} Main
import java.util.Scanner;

public class Main {
  public static void main(String args[]) {
    Scanner acd = new Scanner(System.in);
    int n,a,b,c;
    a=acd.nextInt();
    b=acd.nextInt();
    if(b/100>0)
      n = a * 1000 + b;
    else if(b/10>0)
      n = a * 100 + b;
    else 
      n = a * 10 + b;
    for(c = 1;c < 317 && c * c != n; c++);
    if(c==317)
      System.out.println("No");
    else 
      System.out.println("Yes");
}   
}
