B - *e**** ********e* *e****e* ****e** Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 200

問題文

英小文字からなる長さ N の文字列 S と整数 K が与えられます。 SK 番目の文字と異なる文字全てを * で置き換えてできる文字列を出力してください。

制約

  • 1 \leq K \leq N\leq 10
  • S は英小文字からなる長さ N の文字列である
  • N,K は整数である

入力

入力は以下の形式で標準入力から与えられる。

N
S
K

出力

SK 番目の文字と異なる文字全てを * で置き換えてできる文字列を出力せよ。


入力例 1

5
error
2

出力例 1

*rr*r

S2 番目の文字は r であり、errorr と異なる文字をすべて * で置き換えると文字列 *rr*r になります。


入力例 2

6
eleven
5

出力例 2

e*e*e*

入力例 3

9
education
7

出力例 3

******i**

Score : 200 points

Problem Statement

You are given a string S of length N consisting of lowercase English letters, and an integer K. Print the string obtained by replacing every character in S that differs from the K-th character of S, with *.

Constraints

  • 1 \leq K \leq N\leq 10
  • S is a string of length N consisting of lowercase English letters.
  • N and K are integers.

Input

Input is given from Standard Input in the following format:

N
S
K

Output

Print the string obtained by replacing every character in S that differs from the K-th character of S, with *.


Sample Input 1

5
error
2

Sample Output 1

*rr*r

The second character of S is r. When we replace every character in error that differs from r with *, we get the string *rr*r.


Sample Input 2

6
eleven
5

Sample Output 2

e*e*e*

Sample Input 3

9
education
7

Sample Output 3

******i**