import std;

alias sread = () => readln.chomp();
alias lread = () => readln.chomp.to!long();
alias aryread(T = long) = () => readln.split.to!(T[]);
//aryread!string();
//auto PS = new Tuple!(long,string)[](M);
//x[]=1;でlong[]全要素1に初期化
void main()
{
    auto ab = aryread!string();
    // writeln(ab);
    string ab_str = ab.join();
    // writeln(ab_str);
    long tmp;
    foreach (i; 0 .. ab_str.length)
    {
        // writeln(10 ^^ (((ab_str.length) - 1) - i));
        tmp += (ab_str[i] - '0') * 10 ^^ (((ab_str.length) - 1) - i);
    }
    // writeln(tmp);
    foreach (i; 1 .. 10 ^^ 4)
    {
        if (i * i == tmp)
        {
            writeln("Yes");
            return;
        }
    }
    writeln("No");

}

void scan(L...)(ref L A)
{
    auto l = readln.split;
    foreach (i, T; L)
    {
        A[i] = l[i].to!T;
    }
}

void arywrite(T)(T a)
{
    a.map!text.join(' ').writeln;
}
