import math

A,B = input().split()

Num = int(A+B)

SqN = math.sqrt(Num)

Flag = False

for T in range(math.floor(SqN),math.ceil(SqN)+1):

    if T*T==Num:

        Flag = True

        break

if Flag:

    print('Yes')

else:

    print('No')
import math

A,B = input().split()

Num = int(A+B)

SqN = math.sqrt(Num)

if math.floor(SqN)**2==Num or math.ceil(SqN)**2==Num:

    print('Yes')

else:

    print('No')
import math

A, B = input().split()
Num = int(A + B)
SqN = math.sqrt(Num)
Flag = False
for T in range(math.floor(SqN), math.ceil(SqN) + 1):
    if T * T == Num:
        Flag = True
        break
if Flag:
    print("Yes")
else:
    print("No")

import math

A, B = input().split()
Num = int(A + B)
SqN = math.sqrt(Num)
if math.floor(SqN) ** 2 == Num or math.ceil(SqN) ** 2 == Num:
    print("Yes")
else:
    print("No")

-Flag = False -for T in range(math.floor(SqN), math.ceil(SqN) + 1): -    if T * T == Num: -        Flag = True -        break -if Flag: +if math.floor(SqN) ** 2 == Num or math.ceil(SqN) ** 2 == Num: