"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = ~~arg[0];
    const S = arg[1].split("");
    const K = ~~arg[2];
    
    for(let i in S) {
        if(S[i] !== S[K-1]) {
            S[i] = "*";
        }
    }
    
    console.log(S.join(""));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));