unittest
{
	assert( [ "1 21" ].parse.expand.solve == "Yes" );
	assert( [ "100 100" ].parse.expand.solve == "No" );
	assert( [ "12 10" ].parse.expand.solve == "No" );
}



import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto ab = input.front.split;
	return tuple( ab[ 0 ], ab[ 1 ] );
}

auto solve( string a, string b )
{
	return ( ( a ~ b ).to!real.sqrt % 1 == 0 ) ? "Yes" : "No";
}
