import * as fs from 'fs'; const input = fs.readFileSync('/dev/stdin', 'utf8'); let result = input.replace(/ao/g, 'ki'); console.log(result);