import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        scanner.close();
        String combined = input[0] + input[1];
        Integer combinedNum = Integer.parseInt(combined);
        List<Integer> heihou = new ArrayList<>();
        for( int i=1; i<=1000; i++){
            heihou.add(i*i);
        }
        if(heihou.contains(combinedNum)){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        scanner.close();
        String combined = input[0] + input[1];
        Integer combinedNum = Integer.parseInt(combined);
        List<Integer> heihou = new ArrayList<>();
        for( int i=1; i<=1000; i++){
            heihou.add(i*i);
        }
        if(heihou.contains(combinedNum)){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        scanner.close();
        String combined = input[0] + input[1];
        Integer combinedNum = Integer.parseInt(combined);
        List<Integer> heihou = new ArrayList<>();
        for( int i=1; i<=1000; i++){
            heihou.add(i*i);
        }
        if(heihou.contains(combinedNum)){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        scanner.close();
        String combined = input[0] + input[1];
        Integer combinedNum = Integer.parseInt(combined);
        List<Integer> heihou = new ArrayList<>();
        for( int i=1; i<=1000; i++){
            heihou.add(i*i);
        }
        if(heihou.contains(combinedNum)){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] input = scanner.nextLine().split(" "); input scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " scanner.close() scanner.close scanner String combined = input[0] + input[1]; combined input[0] + input[1] input[0] input 0 input[1] input 1 Integer combinedNum = Integer.parseInt(combined); combinedNum Integer.parseInt(combined) Integer.parseInt Integer combined List<Integer> heihou = new ArrayList<>(); heihou new ArrayList<>() for( int i=1; i<=1000; i++){
            heihou.add(i*i);
        } int i=1; int i=1; i 1 i<=1000 i 1000 i++ i++ i {
            heihou.add(i*i);
        } {
            heihou.add(i*i);
        } heihou.add(i*i) heihou.add heihou i*i i i if(heihou.contains(combinedNum)){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        } heihou.contains(combinedNum) heihou.contains heihou combinedNum {
            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) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        scanner.close();
        String combined = input[0] + input[1];
        Integer combinedNum = Integer.parseInt(combined);
        List<Integer> heihou = new ArrayList<>();
        for( int i=1; i<=1000; i++){
            heihou.add(i*i);
        }
        if(heihou.contains(combinedNum)){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        scanner.close();
        String combined = input[0] + input[1];
        Integer combinedNum = Integer.parseInt(combined);
        List<Integer> heihou = new ArrayList<>();
        for( int i=1; i<=1000; i++){
            heihou.add(i*i);
        }
        if(heihou.contains(combinedNum)){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        scanner.close();
        String combined = input[0] + input[1];
        Integer combinedNum = Integer.parseInt(combined);
        List<Integer> heihou = new ArrayList<>();
        for( int i=1; i<=1000; i++){
            heihou.add(i*i);
        }
        if(heihou.contains(combinedNum)){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
}