import std.stdio, std.conv, std.string, std.algorithm, std.math, std.functional;

void main() {
    writeln(readln.replace(" ", "").chomp.to!uint.pipe!(x => (cast(uint)sqrt(cast(real)x)) ^^ 2 == x) ? "Yes" : "No");
}
