Solve the programming task below in a Python markdown code block.
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