var cluster = require("cluster");
var OS = require("os");
var ReadLine = require("readline");
if (cluster.isMaster) {
var numCPUs = OS.cpus().length;
for (var i = 0; i < numCPUs; i++)
cluster.fork();
var rl = ReadLine.createInterface({
"input": process.stdin,
"output": process.stdout
});
rl.on("line", function(line) {
console.log(line);
});
} else {
//do stuff
}
dmFyIGNsdXN0ZXIgPSByZXF1aXJlKCJjbHVzdGVyIik7CnZhciBPUyA9IHJlcXVpcmUoIm9zIik7CnZhciBSZWFkTGluZSA9IHJlcXVpcmUoInJlYWRsaW5lIik7CgppZiAoY2x1c3Rlci5pc01hc3RlcikgewoJdmFyIG51bUNQVXMgPSBPUy5jcHVzKCkubGVuZ3RoOwoJZm9yICh2YXIgaSA9IDA7IGkgPCBudW1DUFVzOyBpKyspCiAgICAgICAgY2x1c3Rlci5mb3JrKCk7CiAgICB2YXIgcmwgPSBSZWFkTGluZS5jcmVhdGVJbnRlcmZhY2UoewogICAgICAgICJpbnB1dCI6IHByb2Nlc3Muc3RkaW4sCiAgICAgICAgIm91dHB1dCI6IHByb2Nlc3Muc3Rkb3V0CiAgICB9KTsKICAgIHJsLm9uKCJsaW5lIiwgZnVuY3Rpb24obGluZSkgewogICAgICAgIGNvbnNvbGUubG9nKGxpbmUpOwogICAgfSk7Cn0gZWxzZSB7CgkvL2RvIHN0dWZmCn0=