import java.util.*;

public class Main{
  public static int digit(int x){
    int ans = 0, tmp = x;
    if(x == 0)return 1;
    while(tmp != 0){
      tmp /= 10;
      ++ans;
    }
    return ans;
  }
  
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();
    sc.close();
    String ans[] = {"Yes", "No"};
    int an = 1, tmpa = a, tmpb = b;
    int d = digit(tmpb);
    tmpa *= (int)Math.pow(10, d);
    tmpa += tmpb;
    tmpb = (int)Math.sqrt(tmpa);
    if(tmpa == tmpb * tmpb)an = 0;
    System.out.println(ans[an]);
  }
  
} import java.util.*; util.* java public class Main{
  public static int digit(int x){
    int ans = 0, tmp = x;
    if(x == 0)return 1;
    while(tmp != 0){
      tmp /= 10;
      ++ans;
    }
    return ans;
  }
  
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();
    sc.close();
    String ans[] = {"Yes", "No"};
    int an = 1, tmpa = a, tmpb = b;
    int d = digit(tmpb);
    tmpa *= (int)Math.pow(10, d);
    tmpa += tmpb;
    tmpb = (int)Math.sqrt(tmpa);
    if(tmpa == tmpb * tmpb)an = 0;
    System.out.println(ans[an]);
  }
  
} Main public static int digit(int x){
    int ans = 0, tmp = x;
    if(x == 0)return 1;
    while(tmp != 0){
      tmp /= 10;
      ++ans;
    }
    return ans;
  } digit {
    int ans = 0, tmp = x;
    if(x == 0)return 1;
    while(tmp != 0){
      tmp /= 10;
      ++ans;
    }
    return ans;
  } int ans = 0 ans 0 tmp = x; tmp x if(x == 0)return 1; x == 0 x 0 return 1; 1 while(tmp != 0){
      tmp /= 10;
      ++ans;
    } tmp != 0 tmp 0 {
      tmp /= 10;
      ++ans;
    } tmp /= 10 tmp 10 ++ans ans return ans; ans int x x public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();
    sc.close();
    String ans[] = {"Yes", "No"};
    int an = 1, tmpa = a, tmpb = b;
    int d = digit(tmpb);
    tmpa *= (int)Math.pow(10, d);
    tmpa += tmpb;
    tmpb = (int)Math.sqrt(tmpa);
    if(tmpa == tmpb * tmpb)an = 0;
    System.out.println(ans[an]);
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();
    sc.close();
    String ans[] = {"Yes", "No"};
    int an = 1, tmpa = a, tmpb = b;
    int d = digit(tmpb);
    tmpa *= (int)Math.pow(10, d);
    tmpa += tmpb;
    tmpb = (int)Math.sqrt(tmpa);
    if(tmpa == tmpb * tmpb)an = 0;
    System.out.println(ans[an]);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt(); b sc.nextInt() sc.nextInt sc sc.close() sc.close sc String ans[] = {"Yes", "No"}; ans {"Yes", "No"} "Yes" "No" int an = 1 an 1 tmpa = a tmpa a tmpb = b; tmpb b int d = digit(tmpb); d digit(tmpb) digit tmpb tmpa *= (int)Math.pow(10, d) tmpa (int)Math.pow(10, d) Math.pow Math 10 d tmpa += tmpb tmpa tmpb tmpb = (int)Math.sqrt(tmpa) tmpb (int)Math.sqrt(tmpa) Math.sqrt Math tmpa if(tmpa == tmpb * tmpb)an = 0; tmpa == tmpb * tmpb tmpa tmpb * tmpb tmpb tmpb an = 0 an 0 System.out.println(ans[an]) System.out.println System.out System System.out ans[an] ans an String args[] args public class Main{
  public static int digit(int x){
    int ans = 0, tmp = x;
    if(x == 0)return 1;
    while(tmp != 0){
      tmp /= 10;
      ++ans;
    }
    return ans;
  }
  
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();
    sc.close();
    String ans[] = {"Yes", "No"};
    int an = 1, tmpa = a, tmpb = b;
    int d = digit(tmpb);
    tmpa *= (int)Math.pow(10, d);
    tmpa += tmpb;
    tmpb = (int)Math.sqrt(tmpa);
    if(tmpa == tmpb * tmpb)an = 0;
    System.out.println(ans[an]);
  }
  
} public class Main{
  public static int digit(int x){
    int ans = 0, tmp = x;
    if(x == 0)return 1;
    while(tmp != 0){
      tmp /= 10;
      ++ans;
    }
    return ans;
  }
  
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();
    sc.close();
    String ans[] = {"Yes", "No"};
    int an = 1, tmpa = a, tmpb = b;
    int d = digit(tmpb);
    tmpa *= (int)Math.pow(10, d);
    tmpa += tmpb;
    tmpb = (int)Math.sqrt(tmpa);
    if(tmpa == tmpb * tmpb)an = 0;
    System.out.println(ans[an]);
  }
  
} Main
import java.util.*;

public class Main{
  public static int digit(int x){
    int ans = 0, tmp = x;
    if(x == 0)return 1;
    while(tmp != 0){
      tmp /= 10;
      ++ans;
    }
    return ans;
  }
  
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();
    sc.close();
    String ans[] = {"Yes", "No"};
    int an = 1, tmpa = a, tmpb = b;
    int d = digit(tmpb);
    tmpa *= (int)Math.pow(10, d);
    tmpa += tmpb;
    tmpb = (int)Math.sqrt(tmpa);
    if(tmpa == tmpb * tmpb)an = 0;
    System.out.println(ans[an]);
  }
  
}