QOJ.ac

QOJ

Time Limit: 1 s Memory Limit: 1024 MB
[0]

# 3696. Easy Math

Statistics

Given n integers a1,a2,,an, check if the sum of their square root a1+a2++an is a integer.

Input

The input consists of multiple tests. For each test:

The first line contains 1 integer n (1n105). The second line contains n integers a1,a2,,an (0ai109).

Output

For each test, write "Yes" if the sum is a integer, or "No" otherwise.

Sample Input

2
1 4
2
2 3

Sample Output

Yes
No