import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      double number = Math.sqrt(ab);
      if(number == Math.floor(number)){
      	out.println("Yes");
      }else{
      	out.println("No");
      }
      out.close();
    }
} import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      double number = Math.sqrt(ab);
      if(number == Math.floor(number)){
      	out.println("Yes");
      }else{
      	out.println("No");
      }
      out.close();
    }
} Main public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      double number = Math.sqrt(ab);
      if(number == Math.floor(number)){
      	out.println("Yes");
      }else{
      	out.println("No");
      }
      out.close();
    } main {
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      double number = Math.sqrt(ab);
      if(number == Math.floor(number)){
      	out.println("Yes");
      }else{
      	out.println("No");
      }
      out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner sc = new Scanner(inputStream); sc new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) 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 double number = Math.sqrt(ab); number Math.sqrt(ab) Math.sqrt Math ab if(number == Math.floor(number)){
      	out.println("Yes");
      }else{
      	out.println("No");
      } number == Math.floor(number) number Math.floor(number) Math.floor Math number {
      	out.println("Yes");
      } out.println("Yes") out.println out "Yes" {
      	out.println("No");
      } out.println("No") out.println out "No" out.close() out.close out String[] args args public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      double number = Math.sqrt(ab);
      if(number == Math.floor(number)){
      	out.println("Yes");
      }else{
      	out.println("No");
      }
      out.close();
    }
} public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      double number = Math.sqrt(ab);
      if(number == Math.floor(number)){
      	out.println("Yes");
      }else{
      	out.println("No");
      }
      out.close();
    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      String a = sc.next();
      String b = sc.next();
      int ab = Integer.parseInt(a + b);
      double number = Math.sqrt(ab);
      if(number == Math.floor(number)){
      	out.println("Yes");
      }else{
      	out.println("No");
      }
      out.close();
    }
}