import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int indexToConvert = Integer.parseInt(line1[1]);
    
    String str = br.readLine();
    char[] chars = str.toCharArray();
    chars[indexToConvert-1] = Character.toLowerCase(chars[indexToConvert-1]);
    
    System.out.println(new String(chars));
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int indexToConvert = Integer.parseInt(line1[1]);
    
    String str = br.readLine();
    char[] chars = str.toCharArray();
    chars[indexToConvert-1] = Character.toLowerCase(chars[indexToConvert-1]);
    
    System.out.println(new String(chars));
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int indexToConvert = Integer.parseInt(line1[1]);
    
    String str = br.readLine();
    char[] chars = str.toCharArray();
    chars[indexToConvert-1] = Character.toLowerCase(chars[indexToConvert-1]);
    
    System.out.println(new String(chars));
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int indexToConvert = Integer.parseInt(line1[1]);
    
    String str = br.readLine();
    char[] chars = str.toCharArray();
    chars[indexToConvert-1] = Character.toLowerCase(chars[indexToConvert-1]);
    
    System.out.println(new String(chars));
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] line1 = br.readLine().split(" "); line1 br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int indexToConvert = Integer.parseInt(line1[1]); indexToConvert Integer.parseInt(line1[1]) Integer.parseInt Integer line1[1] line1 1 String str = br.readLine(); str br.readLine() br.readLine br char[] chars = str.toCharArray(); chars str.toCharArray() str.toCharArray str chars[indexToConvert-1] = Character.toLowerCase(chars[indexToConvert-1]) chars[indexToConvert-1] chars indexToConvert-1 indexToConvert 1 Character.toLowerCase(chars[indexToConvert-1]) Character.toLowerCase Character chars[indexToConvert-1] chars indexToConvert-1 indexToConvert 1 System.out.println(new String(chars)) System.out.println System.out System System.out new String(chars) String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int indexToConvert = Integer.parseInt(line1[1]);
    
    String str = br.readLine();
    char[] chars = str.toCharArray();
    chars[indexToConvert-1] = Character.toLowerCase(chars[indexToConvert-1]);
    
    System.out.println(new String(chars));
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int indexToConvert = Integer.parseInt(line1[1]);
    
    String str = br.readLine();
    char[] chars = str.toCharArray();
    chars[indexToConvert-1] = Character.toLowerCase(chars[indexToConvert-1]);
    
    System.out.println(new String(chars));
  }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int indexToConvert = Integer.parseInt(line1[1]);
    
    String str = br.readLine();
    char[] chars = str.toCharArray();
    chars[indexToConvert-1] = Character.toLowerCase(chars[indexToConvert-1]);
    
    System.out.println(new String(chars));
  }
}