function finn() {
let input1 = readline();
let input2 = readline();
let splited = input1.split(',');
let N = Number(splited[0]);
let P = Number(splited[1]);
let J = Number(splited[2]);
let A = input2.split(',');
//console.log('input1', input1);
//console.log('input2', input2);
//console.log('A', A);
A.map(e => Number(e)).sort((a, b) => a - b);
let count = 0;
for (let i = 0; i < N; i++) {
if (A[i] < P) {
P += A[i];
} else if (count < 3 && A[i] < (P + J) * 2) {
P += Math.floor(A[i] / 2);
count++;
} else {
return "NO";
}
}
return "SI";
}
console.log(finn());
ZnVuY3Rpb24gZmlubigpIHsKICBsZXQgaW5wdXQxID0gcmVhZGxpbmUoKTsKICBsZXQgaW5wdXQyID0gcmVhZGxpbmUoKTsKICBsZXQgc3BsaXRlZCA9IGlucHV0MS5zcGxpdCgnLCcpOwkKICBsZXQgTiA9IE51bWJlcihzcGxpdGVkWzBdKTsKICBsZXQgUCA9IE51bWJlcihzcGxpdGVkWzFdKTsKICBsZXQgSiA9IE51bWJlcihzcGxpdGVkWzJdKTsKICBsZXQgQSA9IGlucHV0Mi5zcGxpdCgnLCcpOwogIAogIC8vY29uc29sZS5sb2coJ2lucHV0MScsIGlucHV0MSk7CiAgLy9jb25zb2xlLmxvZygnaW5wdXQyJywgaW5wdXQyKTsKICAvL2NvbnNvbGUubG9nKCdBJywgQSk7CiAgCiAgQS5tYXAoZSA9PiBOdW1iZXIoZSkpLnNvcnQoKGEsIGIpID0+IGEgLSBiKTsKICBsZXQgY291bnQgPSAwOwoKICBmb3IgKGxldCBpID0gMDsgaSA8IE47IGkrKykgewogICAgaWYgKEFbaV0gPCBQKSB7CiAgICAgIFAgKz0gQVtpXTsKICAgIH0gZWxzZSBpZiAoY291bnQgPCAzICYmIEFbaV0gPCAoUCArIEopICogMikgewogICAgICBQICs9IE1hdGguZmxvb3IoQVtpXSAvIDIpOwogICAgICBjb3VudCsrOwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICJOTyI7CiAgICB9CiAgfQoKICByZXR1cm4gIlNJIjsKfQoKY29uc29sZS5sb2coZmlubigpKTsK