import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String a = scan.next();
        String b = scan.next();
        String X = a + b;
        int target = Integer.valueOf(X);
        boolean answer = false;
        for (int i = 1; i * i <= target; i++) {
            if (i * i == target) {
                answer = true;
                break;
            }
        }
        System.out.println(answer ? "Yes" : "No");
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String a = scan.next();
        String b = scan.next();
        String X = a + b;
        int target = Integer.valueOf(X);
        boolean answer = false;
        for (int i = 1; i * i <= target; i++) {
            if (i * i == target) {
                answer = true;
                break;
            }
        }
        System.out.println(answer ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    } main {
        Main main = new Main();
        main.solve();
    } Main main = new Main(); main new Main() main.solve() main.solve main String[] args args public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String a = scan.next();
        String b = scan.next();
        String X = a + b;
        int target = Integer.valueOf(X);
        boolean answer = false;
        for (int i = 1; i * i <= target; i++) {
            if (i * i == target) {
                answer = true;
                break;
            }
        }
        System.out.println(answer ? "Yes" : "No");
    } solve {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String a = scan.next();
        String b = scan.next();
        String X = a + b;
        int target = Integer.valueOf(X);
        boolean answer = false;
        for (int i = 1; i * i <= target; i++) {
            if (i * i == target) {
                answer = true;
                break;
            }
        }
        System.out.println(answer ? "Yes" : "No");
    } Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) String a = scan.next(); a scan.next() scan.next scan String b = scan.next(); b scan.next() scan.next scan String X = a + b; X a + b a b int target = Integer.valueOf(X); target Integer.valueOf(X) Integer.valueOf Integer X boolean answer = false; answer false for (int i = 1; i * i <= target; i++) {
            if (i * i == target) {
                answer = true;
                break;
            }
        } int i = 1; int i = 1; i 1 i * i <= target i * i i i target i++ i++ i {
            if (i * i == target) {
                answer = true;
                break;
            }
        } {
            if (i * i == target) {
                answer = true;
                break;
            }
        } if (i * i == target) {
                answer = true;
                break;
            } i * i == target i * i i i target {
                answer = true;
                break;
            } answer = true answer true break; System.out.println(answer ? "Yes" : "No") System.out.println System.out System System.out answer ? "Yes" : "No" answer "Yes" "No" public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String a = scan.next();
        String b = scan.next();
        String X = a + b;
        int target = Integer.valueOf(X);
        boolean answer = false;
        for (int i = 1; i * i <= target; i++) {
            if (i * i == target) {
                answer = true;
                break;
            }
        }
        System.out.println(answer ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String a = scan.next();
        String b = scan.next();
        String X = a + b;
        int target = Integer.valueOf(X);
        boolean answer = false;
        for (int i = 1; i * i <= target; i++) {
            if (i * i == target) {
                answer = true;
                break;
            }
        }
        System.out.println(answer ? "Yes" : "No");
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String a = scan.next();
        String b = scan.next();
        String X = a + b;
        int target = Integer.valueOf(X);
        boolean answer = false;
        for (int i = 1; i * i <= target; i++) {
            if (i * i == target) {
                answer = true;
                break;
            }
        }
        System.out.println(answer ? "Yes" : "No");
    }
}
