void main() {
    string[] ab = readln.split;
    int n = (ab[0] ~ ab[1]).to!int;
    int m = n.to!double.sqrt.to!int;
    writeln(n == m * m ? "Yes" : "No");
}

import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.algorithm;
import std.range;
import std.math;
import std.numeric;
import std.container;
import std.typecons;
import std.ascii;
import std.uni;