import std.stdio, std.conv, std.string, std.math, std.regex, std.range, std.ascii, std.algorithm;

void main(){
	auto N = readln.chomp.to!int;
	auto S = readln.chomp.to!(char[]);
	auto K = readln.chomp.to!int;

	char C = S[K-1];

	foreach(i; 0..N){
		if(S[i] != C){
			S[i] = '*';
		}
	}

	writeln(S);
}