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(" ", ""))
print("Yes" if isinstance(n **.5, int) else "No")

n = int(input().replace(" ", ""))
print("Yes" if n == int(n **.5) ** 2 else "No")
