import java.util.*;
import java.lang.*;


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 = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
        boolean bre = false;
        for (int i = 0; i < c / 2; i++) {
            if (i * i == c) {
                bre = true;
                break;
            }
        }
        if (bre) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java import java.lang.*; lang.* 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 = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
        boolean bre = false;
        for (int i = 0; i < c / 2; i++) {
            if (i * i == c) {
                bre = true;
                break;
            }
        }
        if (bre) {
            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 = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
        boolean bre = false;
        for (int i = 0; i < c / 2; i++) {
            if (i * i == c) {
                bre = true;
                break;
            }
        }
        if (bre) {
            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 = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
        boolean bre = false;
        for (int i = 0; i < c / 2; i++) {
            if (i * i == c) {
                bre = true;
                break;
            }
        }
        if (bre) {
            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 = Integer.parseInt(String.valueOf(a) + String.valueOf(b)); c Integer.parseInt(String.valueOf(a) + String.valueOf(b)) Integer.parseInt Integer String.valueOf(a) + String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b boolean bre = false; bre false for (int i = 0; i < c / 2; i++) {
            if (i * i == c) {
                bre = true;
                break;
            }
        } int i = 0; int i = 0; i 0 i < c / 2 i c / 2 c 2 i++ i++ i {
            if (i * i == c) {
                bre = true;
                break;
            }
        } {
            if (i * i == c) {
                bre = true;
                break;
            }
        } if (i * i == c) {
                bre = true;
                break;
            } i * i == c i * i i i c {
                bre = true;
                break;
            } bre = true bre true break; if (bre) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } bre {
            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 = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
        boolean bre = false;
        for (int i = 0; i < c / 2; i++) {
            if (i * i == c) {
                bre = true;
                break;
            }
        }
        if (bre) {
            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 = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
        boolean bre = false;
        for (int i = 0; i < c / 2; i++) {
            if (i * i == c) {
                bre = true;
                break;
            }
        }
        if (bre) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.*;
import java.lang.*;


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 = Integer.parseInt(String.valueOf(a) + String.valueOf(b));
        boolean bre = false;
        for (int i = 0; i < c / 2; i++) {
            if (i * i == c) {
                bre = true;
                break;
            }
        }
        if (bre) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}
