import math

a,b = input().split()

print(('Yes' if math.sqrt(int(a+b)) == int(math.sqrt(int(a+b))) else 'No'))
a,b = input().split()

n = int(a+b)

print(('Yes' if n**0.5 == int(n**0.5) else 'No'))
import math

a, b = input().split()
print(("Yes" if math.sqrt(int(a + b)) == int(math.sqrt(int(a + b))) else "No"))

a, b = input().split()
n = int(a + b)
print(("Yes" if n**0.5 == int(n**0.5) else "No"))

-import math - -print(("Yes" if math.sqrt(int(a + b)) == int(math.sqrt(int(a + b))) else "No")) +n = int(a + b) +print(("Yes" if n**0.5 == int(n**0.5) else "No"))