a, b = input().split()



ab = int(a+b)



import numpy as np



print(('Yes' if np.sqrt(ab)%1 == 0 else 'No'))
a, b = input().split()



ab = int(a+b)



print(('Yes' if (ab**0.5)%1 == 0 else 'No'))
a, b = input().split()
ab = int(a + b)
import numpy as np

print(("Yes" if np.sqrt(ab) % 1 == 0 else "No"))

a, b = input().split()
ab = int(a + b)
print(("Yes" if (ab**0.5) % 1 == 0 else "No"))

-import numpy as np - -print(("Yes" if np.sqrt(ab) % 1 == 0 else "No")) +print(("Yes" if (ab**0.5) % 1 == 0 else "No"))