function processData(input) { //Enter your code here const lines = input.split("\n"); const n = parseInt(lines[0]); const phoneBook = new Map(); for (var i =1; i<=n; i++ ) { const arr = lines[i].split(" "); const name = arr[0]; const phone = arr[1]; phoneBook.set(name, phone); } for (var j=n+1; j<=lines.length-1; j++ ) { if (phoneBook.has(lines[j])) { console.log(lines[j]+"="+phoneBook.get(lines[j])); } else { console.log("Not found"); } } } process.stdin.resume(); process.stdin.setEncoding("ascii"); _input = ""; process.stdin.on("data", function (input) { _input += input; }); process.stdin.on("end", function () { processData(_input); });