const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () => (await iter.next()).value; void (async function () { // Write your code here while ((line = await readline())) { let arr = []; const mapArr = [ "", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz", ]; for (let i = 0; i < line.length; i++) { const unicode = line.charCodeAt(i); if (unicode >= 65 && unicode <= 90) { let char = String.fromCharCode(unicode + 33); if(line[i] =='Z') char = 'a' arr.push(char); } else if (unicode >= 97 && unicode <= 122) { mapArr.forEach((item, index) => { if (item.includes(line[i])) { arr.push(index); } }); }else { arr.push(line[i]) } // console.log(unicode); } console.log(arr.join("")); } })();