import math

import sys



s = sys.stdin.read()

line = s.splitlines()[0]

a, b = s.split(" ")

x = int(a + b)

sqrt = math.sqrt(x)

sqrt = int(sqrt)

squared = sqrt * sqrt

s = "Yes" if x == squared else "No"

print(s)

import math



a, b = input().split()

x = int(a + b)

sqrt = int(math.sqrt(x))

squared = sqrt * sqrt

print(("Yes" if x == squared else "No"))

import math
import sys

s = sys.stdin.read()
line = s.splitlines()[0]
a, b = s.split(" ")
x = int(a + b)
sqrt = math.sqrt(x)
sqrt = int(sqrt)
squared = sqrt * sqrt
s = "Yes" if x == squared else "No"
print(s)

import math

a, b = input().split()
x = int(a + b)
sqrt = int(math.sqrt(x))
squared = sqrt * sqrt
print(("Yes" if x == squared else "No"))

-import sys -s = sys.stdin.read() -line = s.splitlines()[0] -a, b = s.split(" ") +a, b = input().split() -sqrt = math.sqrt(x) -sqrt = int(sqrt) +sqrt = int(math.sqrt(x)) -s = "Yes" if x == squared else "No" -print(s) +print(("Yes" if x == squared else "No"))