

import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		int num = Integer.parseInt(a + b);

		System.out.println(Math.pow((int)Math.sqrt(num), 2) == num ? "Yes" : "No");

	}
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		int num = Integer.parseInt(a + b);

		System.out.println(Math.pow((int)Math.sqrt(num), 2) == num ? "Yes" : "No");

	}
} Main public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		int num = Integer.parseInt(a + b);

		System.out.println(Math.pow((int)Math.sqrt(num), 2) == num ? "Yes" : "No");

	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		int num = Integer.parseInt(a + b);

		System.out.println(Math.pow((int)Math.sqrt(num), 2) == num ? "Yes" : "No");

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc int num = Integer.parseInt(a + b); num Integer.parseInt(a + b) Integer.parseInt Integer a + b a b System.out.println(Math.pow((int)Math.sqrt(num), 2) == num ? "Yes" : "No") System.out.println System.out System System.out Math.pow((int)Math.sqrt(num), 2) == num ? "Yes" : "No" Math.pow((int)Math.sqrt(num), 2) == num Math.pow((int)Math.sqrt(num), 2) Math.pow Math (int)Math.sqrt(num) Math.sqrt Math num 2 num "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		int num = Integer.parseInt(a + b);

		System.out.println(Math.pow((int)Math.sqrt(num), 2) == num ? "Yes" : "No");

	}
} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		int num = Integer.parseInt(a + b);

		System.out.println(Math.pow((int)Math.sqrt(num), 2) == num ? "Yes" : "No");

	}
} Main


import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		String b = sc.next();

		int num = Integer.parseInt(a + b);

		System.out.println(Math.pow((int)Math.sqrt(num), 2) == num ? "Yes" : "No");

	}
}
