using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tenka1_2019
{
    class B
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            string s = Console.ReadLine();
            int k= int.Parse(Console.ReadLine());
            char chr = s[k-1];
            string ans = "";
            for (int i = 0; i < n; i++)
            {
                if (s[i] == chr) { ans += chr; }
                else { ans += "*"; }
            }
            Console.WriteLine(ans);
        }
    }
}
