import math



ab = int(input().replace(' ', ''))



r = round(math.sqrt(ab))

print(('Yes' if r**2 == ab else 'No'))

import math



ab = int(input().replace(' ', ''))



print(('Yes' if math.sqrt(ab).is_integer() else 'No'))

import math

ab = int(input().replace(" ", ""))
r = round(math.sqrt(ab))
print(("Yes" if r**2 == ab else "No"))

import math

ab = int(input().replace(" ", ""))
print(("Yes" if math.sqrt(ab).is_integer() else "No"))

-r = round(math.sqrt(ab)) -print(("Yes" if r**2 == ab else "No")) +print(("Yes" if math.sqrt(ab).is_integer() else "No"))