const fs = require('fs');
const text = fs.readFileSync('index.html', 'utf8');
const lines = text.split('\n');
for(let i=0; i<lines.length; i++) {
    if(lines[i].includes('المتبقي')) {
        console.log(`Line ${i+1}: ${lines[i].trim()}`);
    }
}
console.log('--- app_final.js ---');
const text2 = fs.readFileSync('app_final.js', 'utf8');
const lines2 = text2.split('\n');
for(let i=0; i<lines2.length; i++) {
    if(lines2[i].includes('المتبقي')) {
        console.log(`Line ${i+1}: ${lines2[i].trim()}`);
    }
}
