import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        String ab = a + b;
        int cur = Integer.valueOf(ab);
        int root = (int) Math.floor(Math.sqrt(cur));

        String ans = "No";
        if((root*root==cur||(root+1)*(root+1)==cur||(root-1)*(root-1)==cur)) ans = "Yes";
        System.out.println(ans);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        String ab = a + b;
        int cur = Integer.valueOf(ab);
        int root = (int) Math.floor(Math.sqrt(cur));

        String ans = "No";
        if((root*root==cur||(root+1)*(root+1)==cur||(root-1)*(root-1)==cur)) ans = "Yes";
        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        String ab = a + b;
        int cur = Integer.valueOf(ab);
        int root = (int) Math.floor(Math.sqrt(cur));

        String ans = "No";
        if((root*root==cur||(root+1)*(root+1)==cur||(root-1)*(root-1)==cur)) ans = "Yes";
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        String ab = a + b;
        int cur = Integer.valueOf(ab);
        int root = (int) Math.floor(Math.sqrt(cur));

        String ans = "No";
        if((root*root==cur||(root+1)*(root+1)==cur||(root-1)*(root-1)==cur)) ans = "Yes";
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc String ab = a + b; ab a + b a b int cur = Integer.valueOf(ab); cur Integer.valueOf(ab) Integer.valueOf Integer ab int root = (int) Math.floor(Math.sqrt(cur)); root (int) Math.floor(Math.sqrt(cur)) Math.floor Math Math.sqrt(cur) Math.sqrt Math cur String ans = "No"; ans "No" if((root*root==cur||(root+1)*(root+1)==cur||(root-1)*(root-1)==cur)) ans = "Yes"; (root*root==cur||(root+1)*(root+1)==cur||(root-1)*(root-1)==cur) root*root==cur||(root+1)*(root+1)==cur||(root-1)*(root-1)==cur root*root==cur root*root root root cur (root+1)*(root+1)==cur (root+1)*(root+1) (root+1) root 1 (root+1) root 1 cur (root-1)*(root-1)==cur (root-1)*(root-1) (root-1) root 1 (root-1) root 1 cur ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        String ab = a + b;
        int cur = Integer.valueOf(ab);
        int root = (int) Math.floor(Math.sqrt(cur));

        String ans = "No";
        if((root*root==cur||(root+1)*(root+1)==cur||(root-1)*(root-1)==cur)) ans = "Yes";
        System.out.println(ans);
    }
}