import std.stdio, std.string, std.range, std.conv, std.array, std.algorithm, std.math, std.typecons;

void main() {
    const N = readln.chomp.to!long;
    const S = readln.chomp;
    const K = readln.chomp.to!long;

    S.map!(c => c != S[K-1] ? "*" : [c]).join.writeln;
}

