from functools import reduce
from math import sqrt

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

sq = int(reduce(add_func, input().split()))
rt = sqrt(sq)

answer = 'Yes' if int(rt) == rt else 'No'
print(answer)
