def resolve():

    a, b = input().split()

    num = int(a+b)

    ans = (num**0.5)%1

    if ans == 0:

        print('Yes')

    else:

        print('No')

resolve()
#!/usr/bin/env python3



def main():

    ab = int(input().replace(" ", ""))

    print(("Yes" if int(ab**.5)**2 == ab else "No"))





if __name__ == "__main__":

    main()

def resolve():
    a, b = input().split()
    num = int(a + b)
    ans = (num**0.5) % 1
    if ans == 0:
        print("Yes")
    else:
        print("No")


resolve()

#!/usr/bin/env python3
def main():
    ab = int(input().replace(" ", ""))
    print(("Yes" if int(ab**0.5) ** 2 == ab else "No"))


if __name__ == "__main__":
    main()

-def resolve(): -    a, b = input().split() -    num = int(a + b) -    ans = (num**0.5) % 1 -    if ans == 0: -        print("Yes") -    else: -        print("No") +#!/usr/bin/env python3 +def main(): +    ab = int(input().replace(" ", "")) +    print(("Yes" if int(ab**0.5) ** 2 == ab else "No")) -resolve() +if __name__ == "__main__": +    main()