import java.util.*;

public class Main{
	public static void main(String[] args){

    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();

    String result = String.valueOf(a) + String.valueOf(b);
    int resultInt = Integer.parseInt(result);
    double resultSqrt = Math.sqrt(resultInt) ;

    if(resultSqrt==Math.floor(resultSqrt)) {System.out.println("Yes");}
    else{System.out.println("No");}



    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){

    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();

    String result = String.valueOf(a) + String.valueOf(b);
    int resultInt = Integer.parseInt(result);
    double resultSqrt = Math.sqrt(resultInt) ;

    if(resultSqrt==Math.floor(resultSqrt)) {System.out.println("Yes");}
    else{System.out.println("No");}



    }
} Main public static void main(String[] args){

    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();

    String result = String.valueOf(a) + String.valueOf(b);
    int resultInt = Integer.parseInt(result);
    double resultSqrt = Math.sqrt(resultInt) ;

    if(resultSqrt==Math.floor(resultSqrt)) {System.out.println("Yes");}
    else{System.out.println("No");}



    } main {

    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();

    String result = String.valueOf(a) + String.valueOf(b);
    int resultInt = Integer.parseInt(result);
    double resultSqrt = Math.sqrt(resultInt) ;

    if(resultSqrt==Math.floor(resultSqrt)) {System.out.println("Yes");}
    else{System.out.println("No");}



    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner String result = String.valueOf(a) + String.valueOf(b); result String.valueOf(a) + String.valueOf(b) String.valueOf(a) String.valueOf String a String.valueOf(b) String.valueOf String b int resultInt = Integer.parseInt(result); resultInt Integer.parseInt(result) Integer.parseInt Integer result double resultSqrt = Math.sqrt(resultInt) ; resultSqrt Math.sqrt(resultInt) Math.sqrt Math resultInt if(resultSqrt==Math.floor(resultSqrt)) {System.out.println("Yes");}
    else{System.out.println("No");} resultSqrt==Math.floor(resultSqrt) resultSqrt Math.floor(resultSqrt) Math.floor Math resultSqrt {System.out.println("Yes");} System.out.println("Yes") System.out.println System.out System System.out "Yes" {System.out.println("No");} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main{
	public static void main(String[] args){

    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();

    String result = String.valueOf(a) + String.valueOf(b);
    int resultInt = Integer.parseInt(result);
    double resultSqrt = Math.sqrt(resultInt) ;

    if(resultSqrt==Math.floor(resultSqrt)) {System.out.println("Yes");}
    else{System.out.println("No");}



    }
} public class Main{
	public static void main(String[] args){

    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();

    String result = String.valueOf(a) + String.valueOf(b);
    int resultInt = Integer.parseInt(result);
    double resultSqrt = Math.sqrt(resultInt) ;

    if(resultSqrt==Math.floor(resultSqrt)) {System.out.println("Yes");}
    else{System.out.println("No");}



    }
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){

    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();

    String result = String.valueOf(a) + String.valueOf(b);
    int resultInt = Integer.parseInt(result);
    double resultSqrt = Math.sqrt(resultInt) ;

    if(resultSqrt==Math.floor(resultSqrt)) {System.out.println("Yes");}
    else{System.out.println("No");}



    }
}