n = int(input())
a = list(map(int, input().split()))
if (sum(a[1:]) ** 0.5) % 1 == 0:
    print("Yes")
else:
    print("No")