"use strict";
const readline = require('readline');
function readInput(text) {
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
return new Promise(resolve => rl.question(`${text}`, answer => {
rl.close();
resolve(answer);
}));
}
module.exports = readInput;