a, b = input().split()
concat = int(a + b)

i = 1
while True:
    if i * i == concat:
        print("Yes")
        exit()
    i += 1
    if i * i > concat:
        break

print("No")

1e8c50b18db1d59d1eadc501a276af5bb485496f
<mask token>

<mask token>
while True:
    if i * i == concat:
        print('Yes')
        exit()
    i += 1
    if i * i > concat:
        break
print('No')

a, b = input().split()
concat = int(a + b)
i = 1
while True:
    if i * i == concat:
        print('Yes')
        exit()
    i += 1
    if i * i > concat:
        break
print('No')

a, b = input().split()
concat = int(a + b)

i = 1
while True:
    if i * i == concat:
        print("Yes")
        exit()
    i += 1
    if i * i > concat:
        break

print("No")
