
import java.util.Scanner;

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

import java.util.Scanner;

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