import java.util.*;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    String a;
    String b;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        a = sc.next();
        b = sc.next();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        a = a + b;
        int n = Integer.parseInt(a);
        int m = (int)Math.sqrt(n);
        if (n == m * m) {
            System.out.println("Yes");            
        } else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    String a;
    String b;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        a = sc.next();
        b = sc.next();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        a = a + b;
        int n = Integer.parseInt(a);
        int m = (int)Math.sqrt(n);
        if (n == m * m) {
            System.out.println("Yes");            
        } else {
            System.out.println("No");
        }
    }
} Main String a; a String b; b public static void main(String[] args) {
        Main main = new Main();
        main.run();
    } main {
        Main main = new Main();
        main.run();
    } Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        a = sc.next();
        b = sc.next();
        sc.close();

        // 解答処理
        solve();
    } run {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        a = sc.next();
        b = sc.next();
        sc.close();

        // 解答処理
        solve();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.next() a sc.next() sc.next sc b = sc.next() b sc.next() sc.next sc sc.close() sc.close sc solve() solve private void solve() {
        a = a + b;
        int n = Integer.parseInt(a);
        int m = (int)Math.sqrt(n);
        if (n == m * m) {
            System.out.println("Yes");            
        } else {
            System.out.println("No");
        }
    } solve {
        a = a + b;
        int n = Integer.parseInt(a);
        int m = (int)Math.sqrt(n);
        if (n == m * m) {
            System.out.println("Yes");            
        } else {
            System.out.println("No");
        }
    } a = a + b a a + b a b int n = Integer.parseInt(a); n Integer.parseInt(a) Integer.parseInt Integer a int m = (int)Math.sqrt(n); m (int)Math.sqrt(n) Math.sqrt Math n if (n == m * m) {
            System.out.println("Yes");            
        } else {
            System.out.println("No");
        } n == m * m n m * m m m {
            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" public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    String a;
    String b;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        a = sc.next();
        b = sc.next();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        a = a + b;
        int n = Integer.parseInt(a);
        int m = (int)Math.sqrt(n);
        if (n == m * m) {
            System.out.println("Yes");            
        } else {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    String a;
    String b;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        a = sc.next();
        b = sc.next();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        a = a + b;
        int n = Integer.parseInt(a);
        int m = (int)Math.sqrt(n);
        if (n == m * m) {
            System.out.println("Yes");            
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    String a;
    String b;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        a = sc.next();
        b = sc.next();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        a = a + b;
        int n = Integer.parseInt(a);
        int m = (int)Math.sqrt(n);
        if (n == m * m) {
            System.out.println("Yes");            
        } else {
            System.out.println("No");
        }
    }
}