from sys import stdin

from itertools import combinations

from math import factorial

import numpy as np

import math



a,b = [int(x) for x in stdin.readline().rstrip().split()]



c = int(str(a)+str(b))



if int(math.sqrt(c))**2 == c:

    print("Yes")

else:

    print("No")
a,b = list(map(int,input().split()))



n = int(str(a)+str(b))



for i in range(1,350):

    if i**2 == n:

        print("Yes")

        exit()



print("No")
from sys import stdin
from itertools import combinations
from math import factorial
import numpy as np
import math

a, b = [int(x) for x in stdin.readline().rstrip().split()]
c = int(str(a) + str(b))
if int(math.sqrt(c)) ** 2 == c:
    print("Yes")
else:
    print("No")

a, b = list(map(int, input().split()))
n = int(str(a) + str(b))
for i in range(1, 350):
    if i**2 == n:
        print("Yes")
        exit()
print("No")

-from sys import stdin -from itertools import combinations -from math import factorial -import numpy as np -import math - -a, b = [int(x) for x in stdin.readline().rstrip().split()] -c = int(str(a) + str(b)) -if int(math.sqrt(c)) ** 2 == c: -    print("Yes") -else: -    print("No") +a, b = list(map(int, input().split())) +n = int(str(a) + str(b)) +for i in range(1, 350): +    if i**2 == n: +        print("Yes") +        exit() +print("No")