import Foundation

var N:Int = Int(readLine()!)!
var S:[String] = readLine()!.compactMap{String($0)}
var K:Int = Int(readLine()!)!

var str = S[K-1]


for i in 0..<S.count{
    if(S[i] == str){
        
    }else{
        S[i] = "*"
    }
}

var result:String = ""
for i in 0..<S.count {
    result = result + S[i]
}
print(result)
