main = getLine >>= putStrLn . solve . map read . words

solve (a:b:_)
  | b < 10 = issquare $ 10 * a + b
  | b < 100 = issquare $ 100 * a + b
  | otherwise = issquare $ 1000 * a + b

issquare n = if round (sqrt (fromIntegral n)) ^ 2 == n then "Yes" else "No"