AtCoDeer the deer has found two positive integers, a and b. Determine whether the concatenation of a and b in this order is a square number.
n = int(input().replace(' ', ''))
for i in range(100100):
  if i*i == n:
    print('Yes')
else:
  print('No')
n = int(input().replace(' ', ''))
for i in range(100100):
  if i*i == n:
    print('Yes')
    break
else:
  print('No')