
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		System.out.println(Math.sqrt(Integer.parseInt(a + b)) % 1 == 0 ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		System.out.println(Math.sqrt(Integer.parseInt(a + b)) % 1 == 0 ? "Yes" : "No");
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		System.out.println(Math.sqrt(Integer.parseInt(a + b)) % 1 == 0 ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		System.out.println(Math.sqrt(Integer.parseInt(a + b)) % 1 == 0 ? "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 sc.close() sc.close sc System.out.println(Math.sqrt(Integer.parseInt(a + b)) % 1 == 0 ? "Yes" : "No") System.out.println System.out System System.out Math.sqrt(Integer.parseInt(a + b)) % 1 == 0 ? "Yes" : "No" Math.sqrt(Integer.parseInt(a + b)) % 1 == 0 Math.sqrt(Integer.parseInt(a + b)) % 1 Math.sqrt(Integer.parseInt(a + b)) Math.sqrt Math Integer.parseInt(a + b) Integer.parseInt Integer a + b a b 1 0 "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		System.out.println(Math.sqrt(Integer.parseInt(a + b)) % 1 == 0 ? "Yes" : "No");
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		System.out.println(Math.sqrt(Integer.parseInt(a + b)) % 1 == 0 ? "Yes" : "No");
	}
} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		sc.close();
		System.out.println(Math.sqrt(Integer.parseInt(a + b)) % 1 == 0 ? "Yes" : "No");
	}
}