function Main (input) {
    const elements = input.split('\n');
    const check = new RegExp(`[^${elements[1][elements[2] - 1]}]`, 'g')
    console.log(elements[1].replace(check, '*' ));
}

Main(require('fs').readFileSync('/dev/stdin', 'utf-8'));