use std::io::*;
use std::str::FromStr;

pub fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let stdin = stdin.lock();
    let token: String = stdin
        .bytes()
        .map(|c| c.expect("failed to read char") as char)
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect();
    token.parse().ok().expect("failed to parse token")
}

fn main() {
    let a: String = read();
    let b: String = read();

    let c: String = a + &b;
    let cn: i64 = c.parse().unwrap();

    let mut d = 1;

    while d * d <= cn {
        if d * d == cn {
            println!("Yes");
            return;
        }
        d += 1;
    }
    println!("No")
}
