import java.io.File;
import java.io.IOException;
import java.util.*;
 
public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		int ab = Integer.parseInt(a + b);
		int sqrt = (int)Math.floor(Math.sqrt(ab));
		System.out.println((sqrt * sqrt == ab)?"Yes":"No");
		
	}
} import java.io.File; File java.io import java.io.IOException; IOException java.io import java.util.*; util.* java public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		int ab = Integer.parseInt(a + b);
		int sqrt = (int)Math.floor(Math.sqrt(ab));
		System.out.println((sqrt * sqrt == ab)?"Yes":"No");
		
	}
} Main public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		int ab = Integer.parseInt(a + b);
		int sqrt = (int)Math.floor(Math.sqrt(ab));
		System.out.println((sqrt * sqrt == ab)?"Yes":"No");
		
	} main {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		int ab = Integer.parseInt(a + b);
		int sqrt = (int)Math.floor(Math.sqrt(ab));
		System.out.println((sqrt * sqrt == ab)?"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 ab = Integer.parseInt(a + b); ab Integer.parseInt(a + b) Integer.parseInt Integer a + b a b int sqrt = (int)Math.floor(Math.sqrt(ab)); sqrt (int)Math.floor(Math.sqrt(ab)) Math.floor Math Math.sqrt(ab) Math.sqrt Math ab System.out.println((sqrt * sqrt == ab)?"Yes":"No") System.out.println System.out System System.out (sqrt * sqrt == ab)?"Yes":"No" (sqrt * sqrt == ab) sqrt * sqrt sqrt sqrt ab "Yes" "No" String[] args args public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		int ab = Integer.parseInt(a + b);
		int sqrt = (int)Math.floor(Math.sqrt(ab));
		System.out.println((sqrt * sqrt == ab)?"Yes":"No");
		
	}
} public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		int ab = Integer.parseInt(a + b);
		int sqrt = (int)Math.floor(Math.sqrt(ab));
		System.out.println((sqrt * sqrt == ab)?"Yes":"No");
		
	}
} Main
import java.io.File;
import java.io.IOException;
import java.util.*;
 
public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String b = sc.next();
		int ab = Integer.parseInt(a + b);
		int sqrt = (int)Math.floor(Math.sqrt(ab));
		System.out.println((sqrt * sqrt == ab)?"Yes":"No");
		
	}
}