output_description: Print the string obtained by replacing every character in S that differs from
  the K-th character of S, with `*`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
      S
      K
attempt: # -*- coding: utf-8 -*-
  
  
  from sys import stdin
  
  
  ############################################
  
  
  # read data for n sequences.
  n = stdin.readline()
  N = int(n)
  n = stdin.readline()
  S = str(n)
  n = stdin.readline()
  K = int(n)
  # data = [int(stdin.readline().rstrip()) for _ in range(n)]
  key = S[K - 1]
  
  out = []
  for i, l in enumerate(S):
      if i < N:
  
          if l != key:
              out.append("*")
          elif l == "\n":
              x = 1
          else:
              out.append(l)
  out1 = ""
  for o in out:
      out1 += o
  print(out1)
  
problem_description: 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 `*`.
samples: [{"input": "5\n    error\n    2", "output": "*rr*r\n    \n\nThe second character of S is `r`. When we replace every character in `error`\nthat differs from `r` with `*`, we get the string `*rr*r`.\n\n* * *"}, {"input": "6\n    eleven\n    5", "output": "e*e*e*\n    \n\n* * *"}, {"input": "9\n    education\n    7", "output": "******i**"}]