#include <iostream>
using namespace std;

int main()
{
  int N, K;
  string S;
  cin >> N >> S >> K;
  for (int i = 0; i < N; i++)
  {
    if (S.at(K - 1) != S.at(i))
      S.at(i) = '*';
  }
  cout << S << endl;
}