You are given a string S of length N consisting of A, B and C, and an integer K which is…
- User
You are given a string S of length N consisting of
A,BandC, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.Constraints
- 1 ≤ N ≤ 50
- 1 ≤ K ≤ N
- S is a string of length N consisting of
A,BandC. Input
Input is given from Standard Input in the following format:
N K S
Output
Print the string S after lowercasing the K-th character in it.
Examples
Input
3 1 ABC
Output
aBC
Input
4 3 CABA
Output
CAbA
Assistant
pythonn, k = map(int, input().split()) s = list(input().strip()) s[k-1] = s[k-1].lower() print(''.join(s))
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.