Easy , problem code:LAPIN , displays "wrong answer "

import java.lang.;
import java.io.
;
import java.util.*;
public class Main
{
public static void main(String[]args)
{
Scanner sc=new Scanner(System.in);
int t,i=0,j,l,p;
t=sc.nextInt();
while(i<t)
{
l=0;p=0;
String s=sc.next();
char []cs=s.toCharArray();
int k=(cs.length/2)-1;
for(j=0;j<=k;j++)
{
l=l+Character.getNumericValue(cs[j]);
}
if(cs.length%2==0)
{
for(j=k+1;j<=cs.length-1;j++)
{
p=p+Character.getNumericValue(cs[j]);
}
}
else{
for(j=k+2;j<=cs.length-1;j++)
{
p=p+Character.getNumericValue(cs[j]);
}
}
if(l==p)
{System.out.println(“YES”);}
else{System.out.println(“NO”);}
i++;
}
System.exit(0);
}
}