#!/usr/bin/ruby
# encoding: utf-8

N = gets.to_i
S = gets.chomp
K = gets.to_i

c = S[K-1]
ans = Array.new

(0..N-1).each do |i|
  if S[i] == c then 
    ans[i] = c
  elsif
    ans[i] = '*'
  end
end

puts ans.join
