import java.util.*;
class Main
{
    public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x;
        if(b >= 100) x = 1000 * a + b;
        else if(b >= 10) x = 100 * a + b; 
        else x = 10 * a + b;
        String ans = "No";
        for(int i = 1; i < 1000; i++)
            if(i * i == x)  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);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x;
        if(b >= 100) x = 1000 * a + b;
        else if(b >= 10) x = 100 * a + b; 
        else x = 10 * a + b;
        String ans = "No";
        for(int i = 1; i < 1000; i++)
            if(i * i == x)  ans = "Yes";
        System.out.println(ans);
    }
} Main public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x;
        if(b >= 100) x = 1000 * a + b;
        else if(b >= 10) x = 100 * a + b; 
        else x = 10 * a + b;
        String ans = "No";
        for(int i = 1; i < 1000; i++)
            if(i * i == x)  ans = "Yes";
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x;
        if(b >= 100) x = 1000 * a + b;
        else if(b >= 10) x = 100 * a + b; 
        else x = 10 * a + b;
        String ans = "No";
        for(int i = 1; i < 1000; i++)
            if(i * i == x)  ans = "Yes";
        System.out.println(ans);
    } 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 x; x if(b >= 100) x = 1000 * a + b;
        else if(b >= 10) x = 100 * a + b; 
        else x = 10 * a + b; b >= 100 b 100 x = 1000 * a + b x 1000 * a + b 1000 * a 1000 a b if(b >= 10) x = 100 * a + b; 
        else x = 10 * a + b; b >= 10 b 10 x = 100 * a + b x 100 * a + b 100 * a 100 a b x = 10 * a + b x 10 * a + b 10 * a 10 a b String ans = "No"; ans "No" for(int i = 1; i < 1000; i++)
            if(i * i == x)  ans = "Yes"; int i = 1; int i = 1; i 1 i < 1000 i 1000 i++ i++ i if(i * i == x)  ans = "Yes"; if(i * i == x)  ans = "Yes"; i * i == x i * i i i x 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);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x;
        if(b >= 100) x = 1000 * a + b;
        else if(b >= 10) x = 100 * a + b; 
        else x = 10 * a + b;
        String ans = "No";
        for(int i = 1; i < 1000; i++)
            if(i * i == x)  ans = "Yes";
        System.out.println(ans);
    }
}