function Main(input) {
    var input = input.split(' ');
    var Connect = input[0] + input[1];
    var int = parseInt(Connect);
    var square = Math.pow(int, 1/2);
    if (square % 1 === 0) {
        console.log('Yes');
    } else {
        console.log('No');
    }
    
    }
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));