function Main(input) {
    input = input.split(' ');
    a = (input[0]);
    b = (input[1]);
    tunageru = a+b;
    tunageta = parseInt(tunageru);
    if (Math.sqrt(tunageta) % 1 === 0) {
        console.log('Yes');
    } else {
        console.log('No');
    }
}
 Main(require('fs').readFileSync('/dev/stdin', 'utf8'));