题目描述
A number can be called v-number if the sum of the lower half of the array is equal to the sum of the upper half of the array.
EXAMPLE:
if num = 1221
sum of lower half = 3
sum of upper half = 3
then it can be called as v-number
INPUT:
First line consists of number of test cases T. Next T lines consists of a number N.
OUTPUT:
For every number N print "YES"(without quotes) if the number is V-number else "NO"(without quotes)
SAMPLE INPUT
2
12
1230
SAMPLE OUTPUT
NO
YES
输入格式
见题面
输出格式
见题面
样例输入
2
12
1230
SAMPLE
样例输出
NO
YES