from functools import reduce
from math import sqrt

def add_func(a, b):
  return a + b

sq = int(reduce(add_func, input().split()))
rt = sqrt(sq)
answer = 'Yes' if rt.is_integer else 'No'
print(answer)
