ll@t;rep(t){ll@n,@m,@a[n];m*=a[1..n]+a[0..]>=m;wt(m?"Yes":"No");}