a, b = input().split()
c = int(a + b)
d = (c**(1 / 2)) // 1
print('Yes' if d**2 == c else 'No')

71cb2158ca2b53fb7afcf6b138b2244a427f2b1b
<mask token>

<mask token>
print('Yes' if d ** 2 == c else 'No')

a, b = input().split()
c = int(a + b)
d = c ** (1 / 2) // 1
print('Yes' if d ** 2 == c else 'No')

a, b = input().split()
c = int(a + b)
d = (c**(1 / 2)) // 1
print('Yes' if d**2 == c else 'No')
