import numpy as np



# input

a, b = input().split()



ab = int(a+b)



if np.sqrt(ab)-round(np.sqrt(ab)):

    print('No')

else:

    print('Yes')
import sys

stdin = sys.stdin

 

sys.setrecursionlimit(10**5) 

 

def li(): return list(map(int, stdin.readline().split()))

def li_(): return [int(x)-1 for x in stdin.readline().split()]

def lf(): return list(map(float, stdin.readline().split()))

def ls(): return stdin.readline().split()

def ns(): return stdin.readline().rstrip()

def lc(): return list(ns())

def ni(): return int(stdin.readline())

def nf(): return float(stdin.readline())



a,b = ls()

num = int(a+b)



ans = False



for i in range(1000):

    if num == i*i:

        ans = True

        

if ans:

    print("Yes")

else:

    print("No")
import numpy as np

# input
a, b = input().split()
ab = int(a + b)
if np.sqrt(ab) - round(np.sqrt(ab)):
    print("No")
else:
    print("Yes")

import sys

stdin = sys.stdin
sys.setrecursionlimit(10**5)


def li():
    return list(map(int, stdin.readline().split()))


def li_():
    return [int(x) - 1 for x in stdin.readline().split()]


def lf():
    return list(map(float, stdin.readline().split()))


def ls():
    return stdin.readline().split()


def ns():
    return stdin.readline().rstrip()


def lc():
    return list(ns())


def ni():
    return int(stdin.readline())


def nf():
    return float(stdin.readline())


a, b = ls()
num = int(a + b)
ans = False
for i in range(1000):
    if num == i * i:
        ans = True
if ans:
    print("Yes")
else:
    print("No")

-import numpy as np +import sys -# input -a, b = input().split() -ab = int(a + b) -if np.sqrt(ab) - round(np.sqrt(ab)): +stdin = sys.stdin +sys.setrecursionlimit(10**5) + + +def li(): +    return list(map(int, stdin.readline().split())) + + +def li_(): +    return [int(x) - 1 for x in stdin.readline().split()] + + +def lf(): +    return list(map(float, stdin.readline().split())) + + +def ls(): +    return stdin.readline().split() + + +def ns(): +    return stdin.readline().rstrip() + + +def lc(): +    return list(ns()) + + +def ni(): +    return int(stdin.readline()) + + +def nf(): +    return float(stdin.readline()) + + +a, b = ls() +num = int(a + b) +ans = False +for i in range(1000): +    if num == i * i: +        ans = True +if ans: +    print("Yes") +else: -else: -    print("Yes")