import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String s = sc.next() + sc.next();

    if (isSquareRoot(Integer.parseInt(s))) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

  private static boolean isSquareRoot(int num) {

    int i = 1;

    while ((i * i) <= num) {

      if ((i * i) == num) {
        return true;
      }

      i++;

    }

    return false;
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String s = sc.next() + sc.next();

    if (isSquareRoot(Integer.parseInt(s))) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

  private static boolean isSquareRoot(int num) {

    int i = 1;

    while ((i * i) <= num) {

      if ((i * i) == num) {
        return true;
      }

      i++;

    }

    return false;
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String s = sc.next() + sc.next();

    if (isSquareRoot(Integer.parseInt(s))) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } main {
    Scanner sc = new Scanner(System.in);

    String s = sc.next() + sc.next();

    if (isSquareRoot(Integer.parseInt(s))) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next() + sc.next(); s sc.next() + sc.next() sc.next() sc.next sc sc.next() sc.next sc if (isSquareRoot(Integer.parseInt(s))) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } isSquareRoot(Integer.parseInt(s)) isSquareRoot Integer.parseInt(s) Integer.parseInt Integer s {
      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 private static boolean isSquareRoot(int num) {

    int i = 1;

    while ((i * i) <= num) {

      if ((i * i) == num) {
        return true;
      }

      i++;

    }

    return false;
  } isSquareRoot {

    int i = 1;

    while ((i * i) <= num) {

      if ((i * i) == num) {
        return true;
      }

      i++;

    }

    return false;
  } int i = 1; i 1 while ((i * i) <= num) {

      if ((i * i) == num) {
        return true;
      }

      i++;

    } (i * i) <= num (i * i) i i num {

      if ((i * i) == num) {
        return true;
      }

      i++;

    } if ((i * i) == num) {
        return true;
      } (i * i) == num (i * i) i i num {
        return true;
      } return true; true i++ i return false; false int num num public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String s = sc.next() + sc.next();

    if (isSquareRoot(Integer.parseInt(s))) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

  private static boolean isSquareRoot(int num) {

    int i = 1;

    while ((i * i) <= num) {

      if ((i * i) == num) {
        return true;
      }

      i++;

    }

    return false;
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String s = sc.next() + sc.next();

    if (isSquareRoot(Integer.parseInt(s))) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

  private static boolean isSquareRoot(int num) {

    int i = 1;

    while ((i * i) <= num) {

      if ((i * i) == num) {
        return true;
      }

      i++;

    }

    return false;
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String s = sc.next() + sc.next();

    if (isSquareRoot(Integer.parseInt(s))) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

  private static boolean isSquareRoot(int num) {

    int i = 1;

    while ((i * i) <= num) {

      if ((i * i) == num) {
        return true;
      }

      i++;

    }

    return false;
  }
}