a,b = input().split()

ab = a+b

for i in range(int(a+b)):

    if int(a+b) == i**2:

        print("Yes")

        exit()

print("No")
from math  import sqrt 

a,b = input().split()

ab = int(a+b)

print((["No","Yes"][int(sqrt(ab))**2 == ab]))
a, b = input().split()
ab = a + b
for i in range(int(a + b)):
    if int(a + b) == i**2:
        print("Yes")
        exit()
print("No")

from math import sqrt

a, b = input().split()
ab = int(a + b)
print((["No", "Yes"][int(sqrt(ab)) ** 2 == ab]))

+from math import sqrt + -ab = a + b -for i in range(int(a + b)): -    if int(a + b) == i**2: -        print("Yes") -        exit() -print("No") +ab = int(a + b) +print((["No", "Yes"][int(sqrt(ab)) ** 2 == ab]))