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();
    // 数値a,bを文字列A,Bに変換
    String A = String.valueOf(a);
    String B = String.valueOf(b);
    // AとBを繋げた文字列を数値に変換
    int testNumber = Integer.parseInt(A + B);
    // 平方数かどうかを判定する変数を定義
    boolean squareNumber = false;
    
    for (int i=1; i<=400; i++) {
      if (testNumber == i * i) {
        squareNumber = true;
      }
    }
    
    if (squareNumber) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}
     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();
    // 数値a,bを文字列A,Bに変換
    String A = String.valueOf(a);
    String B = String.valueOf(b);
    // AとBを繋げた文字列を数値に変換
    int testNumber = Integer.parseInt(A + B);
    // 平方数かどうかを判定する変数を定義
    boolean squareNumber = false;
    
    for (int i=1; i<=400; i++) {
      if (testNumber == i * i) {
        squareNumber = true;
      }
    }
    
    if (squareNumber) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    // 整数の入力
    int a = sc.nextInt();
    int b = sc.nextInt();
    // 数値a,bを文字列A,Bに変換
    String A = String.valueOf(a);
    String B = String.valueOf(b);
    // AとBを繋げた文字列を数値に変換
    int testNumber = Integer.parseInt(A + B);
    // 平方数かどうかを判定する変数を定義
    boolean squareNumber = false;
    
    for (int i=1; i<=400; i++) {
      if (testNumber == i * i) {
        squareNumber = true;
      }
    }
    
    if (squareNumber) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    // 整数の入力
    int a = sc.nextInt();
    int b = sc.nextInt();
    // 数値a,bを文字列A,Bに変換
    String A = String.valueOf(a);
    String B = String.valueOf(b);
    // AとBを繋げた文字列を数値に変換
    int testNumber = Integer.parseInt(A + B);
    // 平方数かどうかを判定する変数を定義
    boolean squareNumber = false;
    
    for (int i=1; i<=400; i++) {
      if (testNumber == i * i) {
        squareNumber = true;
      }
    }
    
    if (squareNumber) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  } 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 String A = String.valueOf(a); A String.valueOf(a) String.valueOf String a String B = String.valueOf(b); B String.valueOf(b) String.valueOf String b int testNumber = Integer.parseInt(A + B); testNumber Integer.parseInt(A + B) Integer.parseInt Integer A + B A B boolean squareNumber = false; squareNumber false for (int i=1; i<=400; i++) {
      if (testNumber == i * i) {
        squareNumber = true;
      }
    } int i=1; int i=1; i 1 i<=400 i 400 i++ i++ i {
      if (testNumber == i * i) {
        squareNumber = true;
      }
    } {
      if (testNumber == i * i) {
        squareNumber = true;
      }
    } if (testNumber == i * i) {
        squareNumber = true;
      } testNumber == i * i testNumber i * i i i {
        squareNumber = true;
      } squareNumber = true squareNumber true if (squareNumber) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } squareNumber {
      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 sc = new Scanner(System.in);
    // 整数の入力
    int a = sc.nextInt();
    int b = sc.nextInt();
    // 数値a,bを文字列A,Bに変換
    String A = String.valueOf(a);
    String B = String.valueOf(b);
    // AとBを繋げた文字列を数値に変換
    int testNumber = Integer.parseInt(A + B);
    // 平方数かどうかを判定する変数を定義
    boolean squareNumber = false;
    
    for (int i=1; i<=400; i++) {
      if (testNumber == i * i) {
        squareNumber = true;
      }
    }
    
    if (squareNumber) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    // 整数の入力
    int a = sc.nextInt();
    int b = sc.nextInt();
    // 数値a,bを文字列A,Bに変換
    String A = String.valueOf(a);
    String B = String.valueOf(b);
    // AとBを繋げた文字列を数値に変換
    int testNumber = Integer.parseInt(A + B);
    // 平方数かどうかを判定する変数を定義
    boolean squareNumber = false;
    
    for (int i=1; i<=400; i++) {
      if (testNumber == i * i) {
        squareNumber = true;
      }
    }
    
    if (squareNumber) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} 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();
    // 数値a,bを文字列A,Bに変換
    String A = String.valueOf(a);
    String B = String.valueOf(b);
    // AとBを繋げた文字列を数値に変換
    int testNumber = Integer.parseInt(A + B);
    // 平方数かどうかを判定する変数を定義
    boolean squareNumber = false;
    
    for (int i=1; i<=400; i++) {
      if (testNumber == i * i) {
        squareNumber = true;
      }
    }
    
    if (squareNumber) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}
    