import java.util.*;

class Main {
public static void main(String[] args) {
 Scanner stdIn = new Scanner(System.in);
  String a = stdIn.next();
  String b = stdIn.next();
  String ab = a + b;
  int c = Integer.parseInt(ab);
  int i = 1;
  
  for(i = 1; i < c; i++) {
    if(i * i == c) break;
  }
  if(i != c) System.out.println("Yes");
  else System.out.println("No");
}
} import java.util.*; util.* java class Main {
public static void main(String[] args) {
 Scanner stdIn = new Scanner(System.in);
  String a = stdIn.next();
  String b = stdIn.next();
  String ab = a + b;
  int c = Integer.parseInt(ab);
  int i = 1;
  
  for(i = 1; i < c; i++) {
    if(i * i == c) break;
  }
  if(i != c) System.out.println("Yes");
  else System.out.println("No");
}
} Main public static void main(String[] args) {
 Scanner stdIn = new Scanner(System.in);
  String a = stdIn.next();
  String b = stdIn.next();
  String ab = a + b;
  int c = Integer.parseInt(ab);
  int i = 1;
  
  for(i = 1; i < c; i++) {
    if(i * i == c) break;
  }
  if(i != c) System.out.println("Yes");
  else System.out.println("No");
} main {
 Scanner stdIn = new Scanner(System.in);
  String a = stdIn.next();
  String b = stdIn.next();
  String ab = a + b;
  int c = Integer.parseInt(ab);
  int i = 1;
  
  for(i = 1; i < c; i++) {
    if(i * i == c) break;
  }
  if(i != c) System.out.println("Yes");
  else System.out.println("No");
} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) String a = stdIn.next(); a stdIn.next() stdIn.next stdIn String b = stdIn.next(); b stdIn.next() stdIn.next stdIn String ab = a + b; ab a + b a b int c = Integer.parseInt(ab); c Integer.parseInt(ab) Integer.parseInt Integer ab int i = 1; i 1 for(i = 1; i < c; i++) {
    if(i * i == c) break;
  } i = 1; i = 1 i 1 i < c i c i++ i++ i {
    if(i * i == c) break;
  } {
    if(i * i == c) break;
  } if(i * i == c) break; i * i == c i * i i i c break; if(i != c) System.out.println("Yes");
  else System.out.println("No"); i != c i c 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
import java.util.*;

class Main {
public static void main(String[] args) {
 Scanner stdIn = new Scanner(System.in);
  String a = stdIn.next();
  String b = stdIn.next();
  String ab = a + b;
  int c = Integer.parseInt(ab);
  int i = 1;
  
  for(i = 1; i < c; i++) {
    if(i * i == c) break;
  }
  if(i != c) System.out.println("Yes");
  else System.out.println("No");
}
}