BETA
School Problem's Submission isn't counted in score!

Submissions: 2728 Accuracy:

18.51%

Difference between sums of odd and even digits
     

Given a long integer, we need to find if the difference between sum of digits present at the odd positions and sum of digits present at even positions is 0 or not. The indexes start from zero (0 index is for leftmost digit).

Input:
First line consists of T test cases. Only line of every test case consists of a number N.

Output:
Print "Yes" if difference is 0 else print "No".

Constraints:
1<=T<=300
1<=N<=10^18

Example:
Input:

2
1212112
123
Output:
Yes
No

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Saksham Raj Seth

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.