import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int bb = b;
		int count = 0;
		int c  = 0;
		while(bb > 0) {
			bb /= 10;
			count++;
		}
		for(int i = 0; i < count; i++) {
			a = a * 10;
		}
		c = a + b;
		if(Math.sqrt(c) % 1 == 0) {
			System.out.println("Yes");
			return;
		}
		else System.out.println("No");
		sc.close();
	}

} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int bb = b;
		int count = 0;
		int c  = 0;
		while(bb > 0) {
			bb /= 10;
			count++;
		}
		for(int i = 0; i < count; i++) {
			a = a * 10;
		}
		c = a + b;
		if(Math.sqrt(c) % 1 == 0) {
			System.out.println("Yes");
			return;
		}
		else System.out.println("No");
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int bb = b;
		int count = 0;
		int c  = 0;
		while(bb > 0) {
			bb /= 10;
			count++;
		}
		for(int i = 0; i < count; i++) {
			a = a * 10;
		}
		c = a + b;
		if(Math.sqrt(c) % 1 == 0) {
			System.out.println("Yes");
			return;
		}
		else System.out.println("No");
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int bb = b;
		int count = 0;
		int c  = 0;
		while(bb > 0) {
			bb /= 10;
			count++;
		}
		for(int i = 0; i < count; i++) {
			a = a * 10;
		}
		c = a + b;
		if(Math.sqrt(c) % 1 == 0) {
			System.out.println("Yes");
			return;
		}
		else System.out.println("No");
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int bb = b; bb b int count = 0; count 0 int c  = 0; c 0 while(bb > 0) {
			bb /= 10;
			count++;
		} bb > 0 bb 0 {
			bb /= 10;
			count++;
		} bb /= 10 bb 10 count++ count for(int i = 0; i < count; i++) {
			a = a * 10;
		} int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
			a = a * 10;
		} {
			a = a * 10;
		} a = a * 10 a a * 10 a 10 c = a + b c a + b a b if(Math.sqrt(c) % 1 == 0) {
			System.out.println("Yes");
			return;
		}
		else System.out.println("No"); Math.sqrt(c) % 1 == 0 Math.sqrt(c) % 1 Math.sqrt(c) Math.sqrt Math c 1 0 {
			System.out.println("Yes");
			return;
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int bb = b;
		int count = 0;
		int c  = 0;
		while(bb > 0) {
			bb /= 10;
			count++;
		}
		for(int i = 0; i < count; i++) {
			a = a * 10;
		}
		c = a + b;
		if(Math.sqrt(c) % 1 == 0) {
			System.out.println("Yes");
			return;
		}
		else System.out.println("No");
		sc.close();
	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int bb = b;
		int count = 0;
		int c  = 0;
		while(bb > 0) {
			bb /= 10;
			count++;
		}
		for(int i = 0; i < count; i++) {
			a = a * 10;
		}
		c = a + b;
		if(Math.sqrt(c) % 1 == 0) {
			System.out.println("Yes");
			return;
		}
		else System.out.println("No");
		sc.close();
	}

} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int bb = b;
		int count = 0;
		int c  = 0;
		while(bb > 0) {
			bb /= 10;
			count++;
		}
		for(int i = 0; i < count; i++) {
			a = a * 10;
		}
		c = a + b;
		if(Math.sqrt(c) % 1 == 0) {
			System.out.println("Yes");
			return;
		}
		else System.out.println("No");
		sc.close();
	}

}
