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 c;
  if(b/10 == 0){c = 10*a + b;}
  else if(b/10 >0 && b/10 <=9){c = 100*a + b;}
  else{c = 1000*a + b;}
  int d = (int)Math.sqrt(c);
  if(d*d == c){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 c;
  if(b/10 == 0){c = 10*a + b;}
  else if(b/10 >0 && b/10 <=9){c = 100*a + b;}
  else{c = 1000*a + b;}
  int d = (int)Math.sqrt(c);
  if(d*d == c){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 c;
  if(b/10 == 0){c = 10*a + b;}
  else if(b/10 >0 && b/10 <=9){c = 100*a + b;}
  else{c = 1000*a + b;}
  int d = (int)Math.sqrt(c);
  if(d*d == c){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 c;
  if(b/10 == 0){c = 10*a + b;}
  else if(b/10 >0 && b/10 <=9){c = 100*a + b;}
  else{c = 1000*a + b;}
  int d = (int)Math.sqrt(c);
  if(d*d == c){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 c; c if(b/10 == 0){c = 10*a + b;}
  else if(b/10 >0 && b/10 <=9){c = 100*a + b;}
  else{c = 1000*a + b;} b/10 == 0 b/10 b 10 0 {c = 10*a + b;} c = 10*a + b c 10*a + b 10*a 10 a b if(b/10 >0 && b/10 <=9){c = 100*a + b;}
  else{c = 1000*a + b;} b/10 >0 && b/10 <=9 b/10 >0 b/10 b 10 0 b/10 <=9 b/10 b 10 9 {c = 100*a + b;} c = 100*a + b c 100*a + b 100*a 100 a b {c = 1000*a + b;} c = 1000*a + b c 1000*a + b 1000*a 1000 a b int d = (int)Math.sqrt(c); d (int)Math.sqrt(c) Math.sqrt Math c if(d*d == c){System.out.println("Yes");}
  else {System.out.println("No");} d*d == c d*d d d c {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 c;
  if(b/10 == 0){c = 10*a + b;}
  else if(b/10 >0 && b/10 <=9){c = 100*a + b;}
  else{c = 1000*a + b;}
  int d = (int)Math.sqrt(c);
  if(d*d == c){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 c;
  if(b/10 == 0){c = 10*a + b;}
  else if(b/10 >0 && b/10 <=9){c = 100*a + b;}
  else{c = 1000*a + b;}
  int d = (int)Math.sqrt(c);
  if(d*d == c){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 c;
  if(b/10 == 0){c = 10*a + b;}
  else if(b/10 >0 && b/10 <=9){c = 100*a + b;}
  else{c = 1000*a + b;}
  int d = (int)Math.sqrt(c);
  if(d*d == c){System.out.println("Yes");}
  else {System.out.println("No");}
}
}
